Export PATH and ERRNO_CODES from Emscripten. ### Description

Fixes #2577 by exporting `PATH` and `ERRNO_CODES` from Emscripten

### Checklists

- [x] Add a [CHANGELOG](https://github.com/pyodide/pyodide/blob/main/docs/project/changelog.md) entry
- [x] Add / update tests
- [x] Add new / update outdated documentation

---
name: Code improvement
about: Suggest a code improvement, i.e. refactoring, deprecation, etc.
title: ""
labels:
assignees: ""
---

## Proposed refactoring or deprecation

<!-- A clear and concise description of the code improvement -->

### Motivation

<!-- Please outline the motivation for the proposal. If this is related to another GitHub issue, please link here too -->

### Pitch

<!-- A clear and concise description of what you want to happen. -->

### Additional context

<!-- Add any other context or screenshots here. -->

---
name: Code improvement
about: Suggest a code improvement, i.e. refactoring, deprecation, etc.
title: ""
labels:
assignees: ""
---

## Proposed refactoring or deprecation

<!-- A clear and concise description of the code improvement -->

### Motivation

<!-- Please outline the motivation for the proposal. If this is related to another GitHub issue, please link here too -->

### Pitch

<!-- A clear and concise description of what you want to happen. -->

### Additional context

<!-- Add any other context or screenshots here. -->
