Skip to content

Commit bdf2d0f

Browse files
committed
Fix issue where globals were getting reset on require
1 parent e00fb00 commit bdf2d0f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/sandbox/pmapi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function Postman (execution, onRequest, onSkipRequest, onAssertion, requireFileR
321321

322322
scope.import({ __module_obj: moduleObj });
323323

324-
scope.exec(codeToExecute, true, (err) => {
324+
scope.exec(codeToExecute, { async: true, resetLocals: false }, (err) => {
325325
scope.unset('__module_obj');
326326
throw err;
327327
});

package-lock.json

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"terser": "^5.24.0",
9393
"tsd-jsdoc": "^2.5.0",
9494
"tv4": "1.3.0",
95-
"uniscope": "2.0.1",
95+
"uniscope": "github:postmanlabs/uniscope#feat/options-reset-locals",
9696
"watchify": "^4.0.0",
9797
"xml2js": "0.4.23"
9898
},

0 commit comments

Comments
 (0)