Skip to content

Commit 1105717

Browse files
committed
Add support for Node.js v7+
Node.js version 7 updated V8, introducing a breaking change when accessing the internal class of the `global` object. Previous V8 versions returned `'[object global]'` when calling `Object#toString()`. More recent versions of V8 now return `'[object Object]'`. As documented in Node issue 9274, ensuring consistent return values across Node versions is not a priority. This commit adds an additional check to support Node versions 7+.
1 parent b4ff854 commit 1105717

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

Diff for: lib/node_modules/@stdlib/utils/is-node/lib/is_node.js

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

Diff for: lib/node_modules/@stdlib/utils/is-node/test/test.is_node.js

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

0 commit comments

Comments
 (0)