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 2018-03-13 15:08:31 +01:00 committed by Myles Borins
parent a60ab57c3c
commit 3d2aebbc99
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946
3 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ namespace {
V(External) \
V(Date) \
V(ArgumentsObject) \
V(BigIntObject) \
V(BooleanObject) \
V(NumberObject) \
V(StringObject) \

View File

@ -49,6 +49,7 @@ rules:
# Global scoped methods and vars
globals:
WebAssembly: false
BigInt: false
BigInt64Array: false
BigUint64Array: false
SharedArrayBuffer: false

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' ],