Closed Bug 1935510 Opened 10 months ago Closed 4 months ago

Normative: Iterator helpers close receiver on argument validation failure

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: dminor, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Severity: -- → N/A
Priority: -- → P2

try-catch with an empty catch block, because exceptions from IteratorClose
have to be ignored.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
  • Moved the ToNumber coercion into a separate try-catch block, so that it
    matches the spec more closely.
  • Rethrowing the error through throw e doesn't propagate the original
    stacktrace when throwing non-Error values, see also bug 1843499 for a similar
    issue. This behaviour isn't great, but shouldn't block this bug. See also
    "builtin/Generator.js" for other self-hosted code which uses throw e to
    rethrow an exception.

Update remaining spec references in Iterator.js.

Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9a0b5db16379 Part 1: Perform IteratorClose when callback argument is not a function. r=spidermonkey-reviewers,iain https://hg.mozilla.org/integration/autoland/rev/97665d31b0b6 Part 2: Perform IteratorClose when limit coercion throws or limit is invalid. r=spidermonkey-reviewers,iain https://hg.mozilla.org/integration/autoland/rev/4fe79d50a0d8 Part 3: Update spec references. r=spidermonkey-reviewers,iain
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
QA Whiteboard: [qa-triage-done-c142/b141]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: