Skip to content

Make SuppressedError and AggregateError serializable #11425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make SuppressedError and AggregateError serializable
  • Loading branch information
anonrig committed Jul 2, 2025
commit 802460e9c96995fd989c7ba3665cd9fb8d86072b
13 changes: 11 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<dfn>%RangeError.prototype%</dfn>,
<dfn>%ReferenceError.prototype%</dfn>,
<dfn>%SyntaxError.prototype%</dfn>,
<dfn>%TypeError.prototype%</dfn>, and
<dfn>%TypeError.prototype%</dfn>,
<dfn>%SuppressedError.prototype%</dfn>,
<dfn>%AggregateError.prototype%</dfn> and
<dfn>%URIError.prototype%</dfn></li>

<li>The <dfn data-x="js-prod-FunctionBody" data-x-href="https://tc39.es/ecma262/#prod-FunctionBody"><i>FunctionBody</i></dfn> production</li>
Expand Down Expand Up @@ -9866,7 +9868,8 @@ interface <dfn interface>DOMStringList</dfn> {
"name").</p></li>

<li><p>If <var>name</var> is not one of "Error", "EvalError", "RangeError", "ReferenceError",
"SyntaxError", "TypeError", or "URIError", then set <var>name</var> to "Error".</p></li>
"SyntaxError", "TypeError", "AggregateError", "SuppressedError", or "URIError",
then set <var>name</var> to "Error".</p></li>

<li><p>Let <var>valueMessageDesc</var> be ? <var>value</var>.[[GetOwnProperty]]("<code
data-x="">message</code>").</p></li>
Expand Down Expand Up @@ -10328,6 +10331,12 @@ o.myself = o;</code></pre>
<li><p>If <var>serialized</var>.[[Name]] is "URIError", then set <var>prototype</var> to
<span>%URIError.prototype%</span>.</p></li>

<li><p>If <var>serialized</var>.[[Name]] is "AggregateError", then set <var>prototype</var> to
<span>%AggregateError.prototype%</span>.</p></li>

<li><p>If <var>serialized</var>.[[Name]] is "SuppressedError", then set <var>prototype</var> to
<span>%SuppressedError.prototype%</span>.</p></li>

<li><p>Let <var>message</var> be <var>serialized</var>.[[Message]].</p></li>

<li><p>Set <var>value</var> to <span>OrdinaryObjectCreate</span>(<var>prototype</var>, «
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy