Skip to content

src/core/pyshim.js ​

Host shims for running the core outside a browser or Node: an embedded V8 (PyMiniRacer) or QuickJS has the language but none of the web platform. Imported first by the bundle entry that tools/build_core_bundle.mjs generates, so these exist before any core module is evaluated (the limb darkening table decodes base64 at import, fits.js makes a TextDecoder, fitRunner.js reads the clock and yields with setTimeout). Nothing here touches numerics. Each shim is installed only where the host lacks the real thing.

Import: import { … } from './src/core/pyshim.js' — no DOM, runs in Node and the browser.

manualTimers ​

js
function manualTimers()

No description in the source.

pumpTimers ​

js
function pumpTimers()

No description in the source.

timersPending ​

js
const timersPending

No description in the source.

MIT licensed · Kyle A. Pearson