Closed Bug 1353775 Opened 7 years ago Closed 7 years ago

Ensure that TypedArray.prototype.fill does one coercion

Categories

(Core :: JavaScript: Standard Library, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch bug1353775.patch (obsolete) — Splinter Review
https://github.com/tc39/test262/pull/927 added a new test to ensure ToNumber is only called once, so we only need tests for the detached array buffer case.

(The ecma_2017/**/shell.js changes only remove a blank line which was added by my editor.)
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8855252 - Flags: review?(evilpies)
And I've already switched steps 3-4 in the %TypedArray%.prototype.fill function per https://github.com/tc39/ecma262/pull/866.
Comment on attachment 8855252 [details] [diff] [review]
bug1353775.patch

Review of attachment 8855252 [details] [diff] [review]:
-----------------------------------------------------------------

Nice, much better semantics.
Attachment #8855252 - Flags: review?(evilpies) → review+
Attached patch bug1353775.patchSplinter Review
Forgot to update js/src/tests/Makefile.in to add the new test directory, carrying r+ from evilpie.
Attachment #8855252 - Attachment is obsolete: true
Attachment #8855760 - Flags: review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f272e23f260f
Update TypedArray.prototype.fill to perform ToNumber(value) only once. r=evilpie
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/f272e23f260f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: