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:
parent
a60ab57c3c
commit
3d2aebbc99
@ -13,6 +13,7 @@ namespace {
|
||||
V(External) \
|
||||
V(Date) \
|
||||
V(ArgumentsObject) \
|
||||
V(BigIntObject) \
|
||||
V(BooleanObject) \
|
||||
V(NumberObject) \
|
||||
V(StringObject) \
|
||||
|
@ -49,6 +49,7 @@ rules:
|
||||
# Global scoped methods and vars
|
||||
globals:
|
||||
WebAssembly: false
|
||||
BigInt: false
|
||||
BigInt64Array: false
|
||||
BigUint64Array: false
|
||||
SharedArrayBuffer: false
|
||||
|
@ -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' ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user