Skip to content

Commit 1ab214d

Browse files
committed
Bug 1965844 - Part 3: Don't overwrite a pending exception in Array.prototype.with. r=jandem
Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
1 parent 5420d3b commit 1ab214d

File tree

2 files changed

+7
-28
lines changed

2 files changed

+7
-28
lines changed

js/src/builtin/Array.cpp

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24389,25 +24389,10 @@ true
2438924389
}
2439024390
/
2439124391
/
24392-
https
24393-
:
24394-
/
24395-
/
24396-
github
24397-
.
24398-
com
24399-
/
24400-
tc39
24401-
/
24402-
proposal
24403-
-
24404-
change
24405-
-
24406-
array
24407-
-
24408-
by
24409-
-
24410-
copy
24392+
ES2026
24393+
draft
24394+
rev
24395+
a562082b031d89d00ee667181ce8a6158656bd4b
2441124396
/
2441224397
/
2441324398
Array
@@ -24416,6 +24401,8 @@ prototype
2441624401
.
2441724402
with
2441824403
(
24404+
index
24405+
value
2441924406
)
2442024407
static
2442124408
bool
@@ -24561,14 +24548,6 @@ relativeIndex
2456124548
)
2456224549
)
2456324550
{
24564-
JS_ReportErrorNumberASCII
24565-
(
24566-
cx
24567-
GetErrorMessage
24568-
nullptr
24569-
JSMSG_BAD_INDEX
24570-
)
24571-
;
2457224551
return
2457324552
false
2457424553
;

js/src/jit-test/tests/errors/bug-1886940.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test
77
|
88
error
99
:
10-
RangeError
10+
TypeError
1111
[
1212
]
1313
.

0 commit comments

Comments
 (0)