aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/vm.exports.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/vm.exports.js')
-rw-r--r--src/bun.js/vm.exports.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/vm.exports.js b/src/bun.js/vm.exports.js
index b6c1b39be..fdc624540 100644
--- a/src/bun.js/vm.exports.js
+++ b/src/bun.js/vm.exports.js
@@ -21,7 +21,7 @@ function notimpl(message) {
const { createContext, isContext, Script, runInNewContext, runInThisContext } = vm;
function runInContext(code, context, options) {
- return new Script(code).runInContext(context, options);
+ return new Script(code, options).runInContext(context);
}
function compileFunction() {