Closed
Bug 1687306
Opened 3 years ago
Closed 3 years ago
TypedArrayObject::set_impl should call TypedArrayObject::convertForSideEffect instead of ToNumber
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
86 Branch
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
TypedArrayObject::set_impl
should call TypedArrayObject::convertForSideEffect
instead of ToNumber
to match https://tc39.es/ecma262/#sec-settypedarrayfromarraylike, steps 16.c-d:
...
c. If target.[[ContentType]] is BigInt, set value to ? ToBigInt(value).
d. Otherwise, set value to ? ToNumber(value).
...
Assignee | ||
Comment 1•3 years ago
|
||
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8abad145119a Call TypedArrayObject::convertForSideEffect() in TypedArray.prototype.set with a detached ArrayBuffer. r=mgaudet
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•