repl reset default dict
+ add mechanism to get a module by name from dynamic imports
This commit is contained in:
parent
d4eebf1a77
commit
305715277c
3 changed files with 13 additions and 4 deletions
|
|
@ -22,6 +22,7 @@ export const evalScope = async (...args) => {
|
|||
globalThis[name] = value;
|
||||
});
|
||||
});
|
||||
return modules;
|
||||
};
|
||||
|
||||
function safeEval(str, options = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue