We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f191a72 commit 3ce279aCopy full SHA for 3ce279a
1 file changed
test/embedding/embedtest.cc
@@ -92,7 +92,7 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
92
env.get(),
93
"const publicRequire ="
94
" require('module').createRequire(process.cwd() + '/');"
95
- "global.require = publicRequire;"
+ "globalThis.require = publicRequire;"
96
"require('vm').runInThisContext(process.argv[1]);");
97
98
if (loadenv_ret.IsEmpty()) // There has been a JS exception.
0 commit comments