Closed
Bug 1354195
Opened 9 years ago
Closed 9 years ago
TypedArray constructor should accept string parameters.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1317383
People
(Reporter: p.s.marshall0, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Steps to reproduce:
new Uint8Array("8");
Actual results:
TypeError: invalid arguments
Expected results:
A new Uint8Array with length 8 should be created. This should use section 22.2.4.2 of the spec - TypedArray( length ). ToIndex is called on the parameter, eventually turning "16" into 16. For other strings e.g. new Uint8Array("foo"), a 0 length typed array should be created. It seems all string parameters result in an error.
![]() |
||
Updated•9 years ago
|
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Comment 1•9 years ago
|
||
Will be fixed in bug 1317383.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•