mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Use registerJSModule when available (#1573)
This commit is contained in:
committed by
GitHub
parent
7813c3f03f
commit
a14e701be4
@@ -1,5 +1,11 @@
|
||||
import { fetchPaths, stdio } from "./_utils.js";
|
||||
import { run, setGlobal, deleteGlobal, writeFile } from "./_python.js";
|
||||
import {
|
||||
run,
|
||||
setGlobal,
|
||||
deleteGlobal,
|
||||
registerJSModule,
|
||||
writeFile,
|
||||
} from "./_python.js";
|
||||
|
||||
const type = "micropython";
|
||||
|
||||
@@ -18,6 +24,7 @@ export default {
|
||||
},
|
||||
setGlobal,
|
||||
deleteGlobal,
|
||||
registerJSModule,
|
||||
run,
|
||||
// TODO: MicroPython doesn't have a Pyodide like top-level await,
|
||||
// this method should still not throw errors once invoked
|
||||
|
||||
Reference in New Issue
Block a user