mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[node:vm] Add missing createScript function
This commit is contained in:
@@ -9,6 +9,10 @@ function runInContext(code, context, options) {
|
||||
return new Script(code, options).runInContext(context);
|
||||
}
|
||||
|
||||
function createScript(code, options) {
|
||||
return new Script(code, options);
|
||||
}
|
||||
|
||||
function compileFunction() {
|
||||
throwNotImplemented("node:vm compileFunction");
|
||||
}
|
||||
@@ -46,4 +50,5 @@ export default {
|
||||
Module,
|
||||
SourceTextModule,
|
||||
SyntheticModule,
|
||||
createScript,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user