Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 7ae54c7

Browse files
committed
Merge branch 'fix/test-context' of https://github.com/watilde/Intl.js
2 parents 3445876 + 7a07be2 commit 7ae54c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/noderunner.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function runTest(testPath) {
1717
var content,
1818
context = LIBS.vm.createContext({});
1919

20+
context.global = context
21+
2022
content = LIBS.fs.readFileSync(LIBS.path.resolve(TEST_DIR, testPath)).toString();
2123
LIBS.vm.runInContext(POLYFILL_CODE, context, POLYFILL_PATH);
2224
LIBS.vm.runInContext(DATA_CODE, context, DATA_PATH);

0 commit comments

Comments
 (0)