Fix #1997 - Bring pyscript stdlib to the PyEditor (#2010)

* Fix #1997 - Bring pyscript stdlib to the PyEditor
This commit is contained in:
Andrea Giammarchi
2024-03-28 10:43:26 +01:00
committed by GitHub
parent 2f3659b676
commit 1447cb3094
8 changed files with 140 additions and 75 deletions

View File

@@ -26,6 +26,9 @@ import { ErrorCode } from "./exceptions.js";
import { robustFetch as fetch, getText } from "./fetch.js";
import { hooks, main, worker, codeFor, createFunction } from "./hooks.js";
import stdlib from "./stdlib.js";
export { stdlib };
// generic helper to disambiguate between custom element and script
const isScript = ({ tagName }) => tagName === "SCRIPT";