Worker sync utility (#1511)

* patched an issue with wasmoon randomly asking to resolve proxy references
  * simplified pyodide and micropython dance by grouping their common utilities together
  * created an integration test around a worker to main thread input between MicroPython and Lua
  * commented some weird bugs / funny behaviors around both MicroPython and Pyodide
  * other minor clean ups
This commit is contained in:
Andrea Giammarchi
2023-06-08 11:10:47 +02:00
committed by GitHub
parent 0cdbfbeb30
commit af72e232c3
26 changed files with 277 additions and 81 deletions

View File

@@ -13,10 +13,11 @@ export const getRuntime = (id, config) => {
if (config) {
// REQUIRES INTEGRATION TEST
/* c8 ignore start */
if (config.endsWith(".json")) options = fetch(config).then(getJSON);
else if (config.endsWith(".toml"))
if (config.endsWith(".json")) {
options = fetch(config).then(getJSON);
} else if (config.endsWith(".toml")) {
options = fetch(config).then(getText).then(parse);
else {
} else {
try {
options = JSON.parse(config);
} catch (_) {