Fix #1812 - Avoid duplicated pyscript module (#1813)

This commit is contained in:
Andrea Giammarchi
2023-10-26 19:44:31 +02:00
committed by GitHub
parent e67eb06d8b
commit cd95a42e5e
2 changed files with 5 additions and 7 deletions

View File

@@ -21,7 +21,6 @@ import "./all-done.js";
import TYPES from "./types.js";
import configs from "./config.js";
import sync from "./sync.js";
import stdlib from "./stdlib.js";
import bootstrapNodeAndPlugins from "./plugins-helper.js";
import { ErrorCode } from "./exceptions.js";
import { robustFetch as fetch, getText } from "./fetch.js";
@@ -52,8 +51,6 @@ const registerModule = ({ XWorker: $XWorker, interpreter, io }) => {
: currentElement.id;
},
});
interpreter.runPython(stdlib, { globals: interpreter.runPython("{}") });
};
// avoid multiple initialization of the same library