Skip to content

Commit 5899eb5

Browse files
committed
server/v8: define NODE_NO_BROWSER_GLOBALS so that Node.js does not try defining its own console
1 parent e9eebe6 commit 5899eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/vendor/node.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ return {
3030
add_dependencies 'vendor:openssl_crypto'
3131
add_dependencies 'vendor:openssl_ssl'
3232

33-
defines { 'NODE_WANT_INTERNALS=1', 'NODE_ARCH="x64"', 'NODE_USE_V8_PLATFORM', 'HAVE_OPENSSL', 'OPENSSL_NO_ENGINE', 'NODE_OPENSSL_SYSTEM_CERT_PATH=""' }
33+
defines { 'NODE_WANT_INTERNALS=1', 'NODE_ARCH="x64"', 'NODE_NO_BROWSER_GLOBALS', 'NODE_USE_V8_PLATFORM', 'HAVE_OPENSSL', 'OPENSSL_NO_ENGINE', 'NODE_OPENSSL_SYSTEM_CERT_PATH=""' }
3434

3535
if os.istarget('windows') then
3636
defines { 'NODE_PLATFORM="win32"' }

0 commit comments

Comments
 (0)