Skip to content

Commit 93b9481

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 9b6b275 commit 93b9481

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

js/src/builtin/Array.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3761,7 +3761,6 @@ static bool array_with(JSContext* cx, unsigned argc, Value* vp) {
37613761

37623762
double relativeIndex;
37633763
if (!ToInteger(cx, args.get(0), &relativeIndex)) {
3764-
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_BAD_INDEX);
37653764
return false;
37663765
}
37673766

0 commit comments

Comments
 (0)