Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4c48b69

Browse filesBrowse files
targosMylesBorins
authored andcommitted
util: add type check function for BigIntObject
PR-URL: #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>
1 parent 35d6661 commit 4c48b69
Copy full SHA for 4c48b69

File tree

Expand file treeCollapse file tree

3 files changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎src/node_types.cc‎

Copy file name to clipboardExpand all lines: src/node_types.cc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace {
1313
V(External) \
1414
V(Date) \
1515
V(ArgumentsObject) \
16+
V(BigIntObject) \
1617
V(BooleanObject) \
1718
V(NumberObject) \
1819
V(StringObject) \
Collapse file

‎test/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: test/.eslintrc.yaml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ rules:
4949
# Global scoped methods and vars
5050
globals:
5151
WebAssembly: false
52+
BigInt: false
5253
BigInt64Array: false
5354
BigUint64Array: false
5455
SharedArrayBuffer: false
Collapse file

‎test/parallel/test-util-types.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-util-types.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ for (const [ value, _method ] of [
2020
[ new Number(), 'isNumberObject' ],
2121
[ new String(), 'isStringObject' ],
2222
[ Object(Symbol()), 'isSymbolObject' ],
23+
[ Object(BigInt(0)), 'isBigIntObject' ],
2324
[ new Error(), 'isNativeError' ],
2425
[ new RegExp() ],
2526
[ async function() {}, 'isAsyncFunction' ],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.