util: add type check function for BigIntObject

PR-URL: https://github.com/nodejs/node/pull/19989
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
Michaël Zasso authored and Myles Borins committed 2018-06-01 09:59:37 +02:00
1 parent a60ab57c3c
commit 3d2aebbc99
3 files changed
+3

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ namespace {
V(External) \
V(Date) \
V(ArgumentsObject) \
V(BigIntObject) \
V(BooleanObject) \
V(NumberObject) \
V(StringObject) \
+1
View File
@@ -49,6 +49,7 @@ rules:
# Global scoped methods and vars
globals:
WebAssembly: false
BigInt: false
BigInt64Array: false
BigUint64Array: false
SharedArrayBuffer: false
+1
View File
@@ -20,6 +20,7 @@ for (const [ value, _method ] of [
[ new Number(), 'isNumberObject' ],
[ new String(), 'isStringObject' ],
[ Object(Symbol()), 'isSymbolObject' ],
[ Object(BigInt(0)), 'isBigIntObject' ],
[ new Error(), 'isNativeError' ],
[ new RegExp() ],
[ async function() {}, 'isAsyncFunction' ],