Closed
Bug 1214936
Opened 9 years ago
Closed 9 years ago
Make the ArrayBuffer constructor throw if invoked without 'new'
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: efaust, Unassigned)
References
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(1 file)
(deleted),
patch
|
evilpie
:
review+
|
Details | Diff | Splinter Review |
By spec, the ArrayBuffer constructor is not callable. Presently, this is only a warning.
Attachment #8673979 -
Flags: review?(evilpies)
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 1•9 years ago
|
||
Comment on attachment 8673979 [details] [diff] [review]
Patch
Review of attachment 8673979 [details] [diff] [review]:
-----------------------------------------------------------------
Nice. Please create copy of my test from bug 980945 and put it under ecma_6/ArrayBuffer. You can also remove WarnIfNotConstructing from NativeObject-inl.h now.
Attachment #8673979 -
Flags: review?(evilpies) → review+
Updated•9 years ago
|
Keywords: site-compat
Comment 3•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Comment 4•9 years ago
|
||
Added the site compatibility note: https://www.fxsitecompat.com/en-US/docs/2015/calling-typed-array-constructors-without-new-will-throw/
Comment 5•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•