Commit 74f5e30
node-api: rtn pending excep on napi_new_instance
When there are any JavaScript exceptions pending,
`napi_pending_exception` should be returned.
PR-URL: #38798
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <midawson@redhat.com>1 parent 8115e6e commit 74f5e30Copy full SHA for 74f5e30
File tree
Expand file treeCollapse file tree
3 files changed
+79
-1
lines changedOpen diff view settings
Filter options
- src
- test/js-native-api/test_exception
Expand file treeCollapse file tree
3 files changed
+79
-1
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2660 | 2660 | |
2661 | 2661 | |
2662 | 2662 | |
2663 | | - |
| 2663 | + |
2664 | 2664 | |
2665 | 2665 | |
2666 | 2666 | |
|
Collapse file
test/js-native-api/test_exception/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_exception/test.js+47Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
51 | 79 | |
52 | 80 | |
53 | 81 | |
| ||
66 | 94 | |
67 | 95 | |
68 | 96 | |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
Collapse file
test/js-native-api/test_exception/test_exception.c
Copy file name to clipboardExpand all lines: test/js-native-api/test_exception/test_exception.c+31Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
25 | 41 | |
26 | 42 | |
27 | 43 | |
| ||
38 | 54 | |
39 | 55 | |
40 | 56 | |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
41 | 70 | |
42 | 71 | |
43 | 72 | |
| ||
64 | 93 | |
65 | 94 | |
66 | 95 | |
| 96 | + |
| 97 | + |
67 | 98 | |
68 | 99 | |
69 | 100 | |
|
0 commit comments