If no indexURL is provided, we throw and catch an error and
then use ErrorStackParser to calculate where pyodide.js has
been loaded from. Resolves #2290.
ENH Calculate indexURL from error stack trace. If no indexURL is provided, we throw and catch an error and
then use ErrorStackParser to calculate where pyodide.js has
been loaded from. Resolves #2290.
# JavaScript API

Backward compatibility of the API is not guaranteed at this point.

## Globals

```{eval-rst}
.. js-doc-summary:: globalThis
.. js-doc-content:: globalThis
```

(js-api-pyodide)=

## pyodide

```{eval-rst}
.. js-doc-summary:: pyodide
.. js-doc-content:: pyodide
```

(js-api-pyproxy)=

## PyProxy

A PyProxy is an object that allows idiomatic use of a Python object from JavaScript. See {ref}`type-translations-pyproxy`.

```{eval-rst}
.. js-doc-summary:: PyProxy
.. js-doc-content:: PyProxy
```

# JavaScript API

Backward compatibility of the API is not guaranteed at this point.

## Globals

```{eval-rst}
.. js-doc-summary:: globalThis
.. js-doc-content:: globalThis
```

(js-api-pyodide)=

## pyodide

```{eval-rst}
.. js-doc-summary:: pyodide
.. js-doc-content:: pyodide
```

(js-api-pyproxy)=

## PyProxy

A PyProxy is an object that allows idiomatic use of a Python object from JavaScript. See {ref}`type-translations-pyproxy`.

```{eval-rst}
.. js-doc-summary:: PyProxy
.. js-doc-content:: PyProxy
```
