Skip to content

Commit b17b665

Browse files
committed
keep wrapper on the same line as the bundle code, so we have accurate line references
1 parent 7d9cf78 commit b17b665

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/tools/runner/vm_context_helper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ export function loadContextifiedMongoDBModule() {
121121
const moduleContainer = { exports: exportsContainer };
122122

123123
// Wrap the bundle in a CommonJS-style wrapper
124-
const wrapper = `(function(exports, module, require) {
125-
${bundleCode}
126-
})`;
124+
const wrapper = `(function(exports, module, require) {${bundleCode}})`;
127125

128126
const script = new vm.Script(wrapper, { filename: bundlePath });
129127
const fn = script.runInContext(sandbox);

0 commit comments

Comments
 (0)