Uh oh!
There was an error while loading. Please reload this page.
lib: make domexception a native error - #58691
Closed
legendecas wants to merge 2 commits into
Closed
Conversation
Collaborator
Review requested:
|
legendecas
marked this pull request as draft
June 12, 2025 10:51
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #58691 +/- ##
==========================================
- Coverage 90.13% 90.10% -0.04%
==========================================
Files 639 639 Lines 188192 188209 +17 Branches 36916 36906 -10 ==========================================
- Hits 169633 169580 -53 - Misses 11324 11369 +45 - Partials 7235 7260 +25
🚀 New features to boost your workflow:
|
legendecas
commented
Jun 12, 2025
MemberAuthor
Fixing |
jasnell
reviewed
Jun 12, 2025
Uh oh!
There was an error while loading. Please reload this page.
legendecasforce-pushed
the
dom-exception-iserror
branch
2 times, most recently
from
June 12, 2025 16:46
40c22d3 to
b8d3f25Comparehubot pushed a commit
to v8/v8
that referenced
this pull request
Jun 18, 2025
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: nodejs/node#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}
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: nodejs#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
Co-Authored-By: Kenta Moriuchi <moriken@kimamass.com>
legendecasforce-pushed
the
dom-exception-iserror
branch
from
June 19, 2025 10:57
b8d3f25 to
27dfaaaComparelegendecas
marked this pull request as ready for review
June 19, 2025 10:57
nodejs-github-bot
commented
Jun 19, 2025
Collaborator
nodejs-github-bot
commented
Jun 19, 2025
Collaborator
nodejs-github-bot
commented
Jun 19, 2025
Collaborator
nodejs-github-bot
commented
Jun 19, 2025
Collaborator
nodejs-github-bot
commented
Jun 20, 2025
Collaborator
nodejs-github-bot
commented
Jun 20, 2025
Collaborator
RafaelGSS
approved these changes
Jun 20, 2025
Ethan-Arrowood
approved these changes
Jun 20, 2025
nodejs-github-bot
commented
Jun 20, 2025
Collaborator
jasnell
approved these changes
Jun 20, 2025
nodejs-github-bot
commented
Jun 21, 2025
Collaborator
Landed in 11222f1...e679e38 |
nodejs-github-bot pushed a commit
that referenced
this pull request
Jun 21, 2025
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: #58691Fixes: #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>
nodejs-github-bot pushed a commit
that referenced
this pull request
Jun 21, 2025
Co-Authored-By: Kenta Moriuchi <moriken@kimamass.com> PR-URL: #58691Fixes: #56497 Refs: v8/v8@e3df60f 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>
Contributor
Would this qualify for a backport in NodeJS 24? |
Uh oh!
There was an error while loading. Please reload this page.
RafaelGSS pushed a commit
that referenced
this pull request
Jun 23, 2025
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: #58691Fixes: #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>
RafaelGSS pushed a commit
that referenced
this pull request
Jun 23, 2025
Co-Authored-By: Kenta Moriuchi <moriken@kimamass.com> PR-URL: #58691Fixes: #56497 Refs: v8/v8@e3df60f 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>
This was referenced Jun 23, 2025
zloirock added a commit
to zloirock/core-js
that referenced
this pull request
Jun 25, 2025
Contributor
We're getting a test failure with this change on v22.x-staging: |
Renegade334 pushed a commit
to Renegade334/node
that referenced
this pull request
Sep 21, 2025
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: nodejs#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: nodejs#58691 Backport-PR-URL: nodejs#59957Fixes: nodejs#56497 Refs: nodejs#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>
Renegade334 pushed a commit
to Renegade334/node
that referenced
this pull request
Sep 21, 2025
Co-Authored-By: Kenta Moriuchi <moriken@kimamass.com> PR-URL: nodejs#58691 Backport-PR-URL: nodejs#59957Fixes: nodejs#56497 Refs: v8/v8@e3df60f Refs: nodejs#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>
legendecas
commented
Sep 21, 2025
MemberAuthor
Backport open at #59957. |
richardlau pushed a commit
that referenced
this pull request
Sep 22, 2025
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: #59957Fixes: #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>
richardlau pushed a commit
that referenced
this pull request
Sep 22, 2025
Co-Authored-By: Kenta Moriuchi <moriken@kimamass.com> PR-URL: #58691 Backport-PR-URL: #59957Fixes: #56497 Refs: v8/v8@e3df60f 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
deps: V8: cherry-pick e3df60f3f5ab
Original commit message:
Refs: v8/v8@e3df60f
lib: make domexception a native error
isolate->SetJSApiWrapperNativeErrorCallback(IsNodeError)can not be used because V8 only invokes the callback for native objects:node/deps/v8/src/builtins/builtins-error.cc
Lines 72 to 74 in 708477b
Setting this callback also requires embedders like electron to decide if they need to override blink's callback. So it is simpler to implement this in JS only.
Refs: #58138
Fixes: #56497