Commit d289b1d
deps: V8: cherry-pick e3df60f3f5ab
Original commit message:
[objects] allow host defined serializer of JSError
Allow host defined serializer and deserializer of JSError in
ValueSerializer API. This allows hosts that implement DOMException
in JS to support `Error.isError` proposal and `structuredClone`.
Refs: #58691
Change-Id: I022821c9abd659970c4d449b3c69c5fb54d0618a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6637876
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Chengzhong Wu <cwu631@bloomberg.net>
Cr-Commit-Position: refs/heads/main@{#100894}
Refs: v8/v8@e3df60f
PR-URL: #58691
Backport-PR-URL: #59957
Fixes: #56497
Refs: #58138
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent da6e8cb commit d289b1dCopy full SHA for d289b1d
File tree
Expand file treeCollapse file tree
3 files changed
+75
-3
lines changedOpen diff view settings
Filter options
- deps/v8
- src/objects
- test/unittests/objects
Expand file treeCollapse file tree
3 files changed
+75
-3
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
deps/v8/src/objects/value-serializer.cc
Copy file name to clipboardExpand all lines: deps/v8/src/objects/value-serializer.cc+11-2Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
643 | 643 | |
644 | 644 | |
645 | 645 | |
646 | | - |
647 | | - |
| 646 | + |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
| 651 | + |
| 652 | + |
| 653 | + |
| 654 | + |
| 655 | + |
| 656 | + |
648 | 657 | |
649 | 658 | |
650 | 659 | |
|
Collapse file
deps/v8/test/unittests/objects/value-serializer-unittest.cc
Copy file name to clipboardExpand all lines: deps/v8/test/unittests/objects/value-serializer-unittest.cc+63Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3139 | 3139 | |
3140 | 3140 | |
3141 | 3141 | |
| 3142 | + |
| 3143 | + |
| 3144 | + |
| 3145 | + |
| 3146 | + |
| 3147 | + |
| 3148 | + |
| 3149 | + |
| 3150 | + |
| 3151 | + |
| 3152 | + |
| 3153 | + |
| 3154 | + |
| 3155 | + |
| 3156 | + |
| 3157 | + |
| 3158 | + |
| 3159 | + |
| 3160 | + |
| 3161 | + |
| 3162 | + |
| 3163 | + |
| 3164 | + |
| 3165 | + |
| 3166 | + |
| 3167 | + |
| 3168 | + |
| 3169 | + |
| 3170 | + |
| 3171 | + |
| 3172 | + |
| 3173 | + |
| 3174 | + |
| 3175 | + |
| 3176 | + |
| 3177 | + |
| 3178 | + |
| 3179 | + |
| 3180 | + |
| 3181 | + |
| 3182 | + |
| 3183 | + |
| 3184 | + |
| 3185 | + |
| 3186 | + |
| 3187 | + |
| 3188 | + |
| 3189 | + |
| 3190 | + |
| 3191 | + |
| 3192 | + |
| 3193 | + |
| 3194 | + |
| 3195 | + |
| 3196 | + |
| 3197 | + |
| 3198 | + |
| 3199 | + |
| 3200 | + |
| 3201 | + |
| 3202 | + |
| 3203 | + |
| 3204 | + |
3142 | 3205 | |
3143 | 3206 | |
3144 | 3207 | |
|
0 commit comments