Closed
Bug 949868
Opened 11 years ago
Closed 9 years ago
Object.freeze(<non-empty Typed Array>) throws InternalError
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1120503
People
(Reporter: emk, Unassigned)
References
(Blocks 1 open bug)
Details
Steps to reproduce: Object.freeze(new Uint8Array(1)); Actual result: InternalError: can't set attributes on indexed array properties Expected result: Do whatever else throwing InternalError. I don't know the correct behavior from the spec perspective, but it would not be throwing a SpiderMonkey extension. Chrome (V8) throws TypeError. IE11 didn't throw, but it had no effect either. (The frozen typed array object was still writable.)
Comment 1•9 years ago
|
||
Now throws a type error for non empty arrays, which should be correct per spec.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•