Commit 8cfa88a
util: add util.types.isBoxedPrimitive
Checking all boxed primitives individually requires to cross the C++
barrier multiple times besides being more complicated than just a
single check.
PR-URL: #22620
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 7c831b7 commit 8cfa88aCopy full SHA for 8cfa88a
File tree
Expand file treeCollapse file tree
3 files changed
+45
-4
lines changedOpen diff view settings
Filter options
- doc/api
- src
- test/parallel
Expand file treeCollapse file tree
3 files changed
+45
-4
lines changedOpen diff view settings
Collapse file
+24-3Lines changed: 24 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1054 | 1054 | |
1055 | 1055 | |
1056 | 1056 | |
1057 | | - |
1058 | | - |
| 1057 | + |
| 1058 | + |
1059 | 1059 | |
1060 | | - |
| 1060 | + |
| 1061 | + |
| 1062 | + |
| 1063 | + |
| 1064 | + |
| 1065 | + |
| 1066 | + |
| 1067 | + |
| 1068 | + |
| 1069 | + |
| 1070 | + |
| 1071 | + |
| 1072 | + |
| 1073 | + |
| 1074 | + |
| 1075 | + |
| 1076 | + |
| 1077 | + |
| 1078 | + |
| 1079 | + |
| 1080 | + |
| 1081 | + |
1061 | 1082 | |
1062 | 1083 | |
1063 | 1084 | |
|
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
54 | 63 | |
55 | 64 | |
56 | 65 | |
| ||
63 | 72 | |
64 | 73 | |
65 | 74 | |
| 75 | + |
66 | 76 | |
67 | 77 | |
68 | 78 | |
|
Collapse file
test/parallel/test-util-types.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-types.js+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
| 60 | + |
| 61 | + |
61 | 62 | |
62 | 63 | |
63 | 64 | |
| ||
68 | 69 | |
69 | 70 | |
70 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
71 | 81 | |
72 | 82 | |
73 | 83 | |
|
0 commit comments