Commit f3d00c5
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 9a71091 commit f3d00c5Copy full SHA for f3d00c5
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 |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
|
Collapse file
+13-5Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1440 | 1440 | |
1441 | 1441 | |
1442 | 1442 | |
1443 | | - |
1444 | | - |
1445 | | - |
1446 | | - |
1447 | | - |
| 1443 | + |
| 1444 | + |
| 1445 | + |
| 1446 | + |
| 1447 | + |
| 1448 | + |
| 1449 | + |
| 1450 | + |
| 1451 | + |
| 1452 | + |
| 1453 | + |
| 1454 | + |
| 1455 | + |
1448 | 1456 | |
1449 | 1457 | |
1450 | 1458 | |
|
Collapse file
+25-3Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2362 | 2362 | |
2363 | 2363 | |
2364 | 2364 | |
| 2365 | + |
| 2366 | + |
| 2367 | + |
| 2368 | + |
| 2369 | + |
| 2370 | + |
| 2371 | + |
| 2372 | + |
| 2373 | + |
| 2374 | + |
| 2375 | + |
| 2376 | + |
| 2377 | + |
| 2378 | + |
| 2379 | + |
| 2380 | + |
| 2381 | + |
| 2382 | + |
| 2383 | + |
| 2384 | + |
| 2385 | + |
| 2386 | + |
2365 | 2387 | |
2366 | 2388 | |
2367 | 2389 | |
| ||
2371 | 2393 | |
2372 | 2394 | |
2373 | 2395 | |
2374 | | - |
2375 | | - |
2376 | | - |
| 2396 | + |
| 2397 | + |
| 2398 | + |
2377 | 2399 | |
2378 | 2400 | |
2379 | 2401 | |
|
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 |
|---|---|---|
| ||
23654 | 23654 | |
23655 | 23655 | |
23656 | 23656 | |
23657 | | - |
| 23657 | + |
| 23658 | + |
| 23659 | + |
23658 | 23660 | |
23659 | 23661 | |
23660 | 23662 | |
| ||
23861 | 23863 | |
23862 | 23864 | |
23863 | 23865 | |
23864 | | - |
| 23866 | + |
| 23867 | + |
| 23868 | + |
23865 | 23869 | |
23866 | 23870 | |
23867 | 23871 | |
| ||
23872 | 23876 | |
23873 | 23877 | |
23874 | 23878 | |
| 23879 | + |
| 23880 | + |
| 23881 | + |
| 23882 | + |
| 23883 | + |
| 23884 | + |
| 23885 | + |
| 23886 | + |
| 23887 | + |
| 23888 | + |
| 23889 | + |
| 23890 | + |
| 23891 | + |
| 23892 | + |
| 23893 | + |
| 23894 | + |
| 23895 | + |
| 23896 | + |
| 23897 | + |
| 23898 | + |
| 23899 | + |
| 23900 | + |
| 23901 | + |
| 23902 | + |
| 23903 | + |
| 23904 | + |
| 23905 | + |
| 23906 | + |
23875 | 23907 | |
23876 | 23908 | |
23877 | 23909 | |
|
0 commit comments