Commit 02fe750
n-api: simplify bigint-from-word creation
Macro `CHECK_MAYBE_EMPTY_WITH_PREAMBLE()` does the work of checking
the `TryCatch` and returning `napi_pending_exception` so this change
reuses it for `napi_create_bigint_words()`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #34554
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>1 parent 09a6cef commit 02fe750Copy full SHA for 02fe750
File tree
Expand file treeCollapse file tree
3 files changed
+29
-7
lines changedOpen diff view settings
Filter options
- src
- test/js-native-api/test_bigint
Expand file treeCollapse file tree
3 files changed
+29
-7
lines changedOpen diff view settings
Collapse file
+4-7Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1634 | 1634 | |
1635 | 1635 | |
1636 | 1636 | |
1637 | | - |
1638 | | - |
1639 | | - |
1640 | | - |
1641 | | - |
1642 | | - |
1643 | | - |
| 1637 | + |
| 1638 | + |
| 1639 | + |
| 1640 | + |
1644 | 1641 | |
1645 | 1642 | |
1646 | 1643 | |
|
Collapse file
test/js-native-api/test_bigint/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_bigint/test.js+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
| ||
43 | 44 | |
44 | 45 | |
45 | 46 | |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
Collapse file
test/js-native-api/test_bigint/test_bigint.c
Copy file name to clipboardExpand all lines: test/js-native-api/test_bigint/test_bigint.c+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
122 | 123 | |
123 | 124 | |
124 | 125 | |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
125 | 142 | |
126 | 143 | |
127 | 144 | |
| ||
130 | 147 | |
131 | 148 | |
132 | 149 | |
| 150 | + |
133 | 151 | |
134 | 152 | |
135 | 153 | |
|
0 commit comments