repl reset default dict

+ add mechanism to get a module by name from dynamic imports
This commit is contained in:
Felix Roos 2024-02-29 04:54:03 +01:00
parent d4eebf1a77
commit 305715277c
3 changed files with 13 additions and 4 deletions

View file

@ -22,6 +22,7 @@ export const evalScope = async (...args) => {
globalThis[name] = value;
});
});
return modules;
};
function safeEval(str, options = {}) {