Commit 42c4560
committed
deps: V8: backport 777fa98
Original commit message:
Make SetSyntheticModuleExport throw instead of crash for nonexistent export name
Per spec, Module::SetSyntheticModuleExport should throw a ReferenceError
when called with an export name that was not supplied when constructing
that SyntheticModule. Instead, the current implementation crashes with
a failed CHECK().
Add a new Module::SyntheticModuleSetExport that throws (without an ensuing
crash) for this case, and deprecate the old
Module::SetSyntheticModuleExport.
Bug: v8:9828
Change-Id: I3b3d353064c3851882781818099bd8f6ee74c809
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1860996
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Dan Clark <daniec@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#64438}
Refs: v8/v8@777fa98
PR-URL: #30062
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent dbb4e2a commit 42c4560Copy full SHA for 42c4560
File tree
Expand file treeCollapse file tree
7 files changed
+114
-19
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src
- api
- logging
- objects
- test/cctest
Expand file treeCollapse file tree
7 files changed
+114
-19
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
Collapse file
+13-5Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1473 | 1473 | |
1474 | 1474 | |
1475 | 1475 | |
1476 | | - |
1477 | | - |
1478 | | - |
1479 | | - |
1480 | | - |
| 1476 | + |
| 1477 | + |
| 1478 | + |
| 1479 | + |
| 1480 | + |
| 1481 | + |
| 1482 | + |
| 1483 | + |
| 1484 | + |
| 1485 | + |
| 1486 | + |
| 1487 | + |
| 1488 | + |
1481 | 1489 | |
1482 | 1490 | |
1483 | 1491 | |
|
Collapse file
+25-3Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2351 | 2351 | |
2352 | 2352 | |
2353 | 2353 | |
| 2354 | + |
| 2355 | + |
| 2356 | + |
| 2357 | + |
| 2358 | + |
| 2359 | + |
| 2360 | + |
| 2361 | + |
| 2362 | + |
| 2363 | + |
| 2364 | + |
| 2365 | + |
| 2366 | + |
| 2367 | + |
| 2368 | + |
| 2369 | + |
| 2370 | + |
| 2371 | + |
| 2372 | + |
| 2373 | + |
| 2374 | + |
| 2375 | + |
2354 | 2376 | |
2355 | 2377 | |
2356 | 2378 | |
| ||
2360 | 2382 | |
2361 | 2383 | |
2362 | 2384 | |
2363 | | - |
2364 | | - |
2365 | | - |
| 2385 | + |
| 2386 | + |
| 2387 | + |
2366 | 2388 | |
2367 | 2389 | |
2368 | 2390 | |
|
Collapse file
deps/v8/src/logging/counters.h
Copy file name to clipboardExpand all lines: deps/v8/src/logging/counters.h+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
780 | 780 | |
781 | 781 | |
782 | 782 | |
| 783 | + |
783 | 784 | |
784 | 785 | |
785 | 786 | |
|
Collapse file
deps/v8/src/objects/synthetic-module.cc
Copy file name to clipboardExpand all lines: deps/v8/src/objects/synthetic-module.cc+25-5Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
27 | 33 | |
28 | 34 | |
29 | 35 | |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
30 | 50 | |
31 | 51 | |
32 | 52 | |
|
Collapse file
deps/v8/src/objects/synthetic-module.h
Copy file name to clipboardExpand all lines: deps/v8/src/objects/synthetic-module.h+15-3Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
28 | | - |
29 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
30 | 42 | |
31 | 43 | |
32 | 44 | |
|
Collapse file
deps/v8/test/cctest/test-api.cc
Copy file name to clipboardExpand all lines: deps/v8/test/cctest/test-api.cc+34-2Lines changed: 34 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23693 | 23693 | |
23694 | 23694 | |
23695 | 23695 | |
23696 | | - |
| 23696 | + |
| 23697 | + |
| 23698 | + |
23697 | 23699 | |
23698 | 23700 | |
23699 | 23701 | |
| ||
23900 | 23902 | |
23901 | 23903 | |
23902 | 23904 | |
23903 | | - |
| 23905 | + |
| 23906 | + |
| 23907 | + |
23904 | 23908 | |
23905 | 23909 | |
23906 | 23910 | |
| ||
23911 | 23915 | |
23912 | 23916 | |
23913 | 23917 | |
| 23918 | + |
| 23919 | + |
| 23920 | + |
| 23921 | + |
| 23922 | + |
| 23923 | + |
| 23924 | + |
| 23925 | + |
| 23926 | + |
| 23927 | + |
| 23928 | + |
| 23929 | + |
| 23930 | + |
| 23931 | + |
| 23932 | + |
| 23933 | + |
| 23934 | + |
| 23935 | + |
| 23936 | + |
| 23937 | + |
| 23938 | + |
| 23939 | + |
| 23940 | + |
| 23941 | + |
| 23942 | + |
| 23943 | + |
| 23944 | + |
| 23945 | + |
23914 | 23946 | |
23915 | 23947 | |
23916 | 23948 | |
|
0 commit comments