Updated MicroPython (#1510)

Updated MicroPython
This commit is contained in:
Andrea Giammarchi
2023-06-06 11:42:23 +02:00
committed by GitHub
parent 339e40063a
commit 0cdbfbeb30
31 changed files with 8387 additions and 10061 deletions

View File

@@ -1,4 +1,4 @@
import { fetchPaths } from "./_utils.js";
import { clean, fetchPaths } from "./_utils.js";
const type = "ruby";
@@ -32,8 +32,8 @@ export default {
if (config.fetch) await fetchPaths(this, runtime, config.fetch);
return runtime;
},
run: (runtime, code) => runtime.eval(code),
runAsync: (runtime, code) => runtime.evalAsync(code),
run: (runtime, code) => runtime.eval(clean(code)),
runAsync: (runtime, code) => runtime.evalAsync(clean(code)),
runEvent(runtime, code, key) {
return this.run(
runtime,