mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
[next] Update MicroPython and other dependencies (#1535)
This commit is contained in:
committed by
GitHub
parent
8ba28989fb
commit
db27d52352
@@ -10,19 +10,12 @@ import {
|
||||
|
||||
const type = "micropython";
|
||||
|
||||
let patchPromise = true;
|
||||
|
||||
// REQUIRES INTEGRATION TEST
|
||||
/* c8 ignore start */
|
||||
export default {
|
||||
type: [type, "mpy"],
|
||||
module: () => `http://localhost:8080/micropython/micropython.mjs`,
|
||||
async engine({ loadMicroPython }, config, url) {
|
||||
// @bug https://github.com/micropython/micropython/issues/11749
|
||||
if (patchPromise) {
|
||||
patchPromise = false;
|
||||
globalThis.Promise = class extends Promise {};
|
||||
}
|
||||
const { stderr, stdout, get } = stdio();
|
||||
url = url.replace(/\.m?js$/, ".wasm");
|
||||
const runtime = await get(loadMicroPython({ stderr, stdout, url }));
|
||||
|
||||
Reference in New Issue
Block a user