Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit e032c3f

Browse files
natechapinmoz-wptsync-bot
authored andcommitted
Bug 1945304 [wpt PR 50425] - Reland "Ensure AbortSignal.throwIfAborted doesn't modify the message of an abort error", a=testonly
Automatic update from web-platform-tests Reland "Ensure AbortSignal.throwIfAborted doesn't modify the message of an abort error" This reverts commit 74320221ad24d0050a8baa031ca1d0e998ea7fc6. Reason for revert: Not the cause of issues.chromium.org/issues/393009392 Original change's description: > Revert "Ensure AbortSignal.throwIfAborted doesn't modify the message of an abort error" > > This reverts commit 0e0ef178e05e3f81b0de04c8f0197fe3ab608f41. > > Reason for revert: Possible culprit for windows builder closure, see https://g-issues.chromium.org/issues/393009392. > > Original change's description: > > Ensure AbortSignal.throwIfAborted doesn't modify the message of an abort error > > > > Fixed: 392413688 > > Change-Id: I3639c573cd7349eac1f9b09c427a5a52bccdda72 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6209470 > > Reviewed-by: Andrey Kosyakov <[email protected]> > > Commit-Queue: Nate Chapin <[email protected]> > > Cr-Commit-Position: refs/heads/main@{#1412605} > > Change-Id: Ifb785338a85e77e845a677940fc1353b74757b0f > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6211537 > Commit-Queue: Patti Lor <[email protected]> > Owners-Override: Patti Lor <[email protected]> > Bot-Commit: Rubber Stamper <[email protected]> > Reviewed-by: Patti Lor <[email protected]> > Auto-Submit: Patti Lor <[email protected]> > Cr-Commit-Position: refs/heads/main@{#1412694} Change-Id: Ic42d7631d3ebe6a1c902e0763fdc3335f5262b33 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6221802 Commit-Queue: Andrey Kosyakov <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Reviewed-by: Andrey Kosyakov <[email protected]> Cr-Commit-Position: refs/heads/main@{#1414549} -- wpt-commits: dc928169ee38969433af668319a73ed9196ffbee wpt-pr: 50425
1 parent fa816d5 commit e032c3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/web-platform/tests/dom/abort/event.any.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,12 @@ test(t => {
172172

173173
test(t => {
174174
const reason = new Error('boom');
175+
const message = reason.message;
175176
const signal = AbortSignal.abort(reason);
176177
assert_true(signal.aborted);
177178
assert_throws_exactly(reason, () => signal.throwIfAborted());
179+
assert_equals(reason.message, message,
180+
"abort.reason should not be changed by throwIfAborted()");
178181
}, "throwIfAborted() should throw abort.reason if signal aborted");
179182

180183
test(t => {

0 commit comments

Comments
 (0)