Make the ArrayBuffer constructor throw if invoked without 'new'

RESOLVED FIXED in Firefox 44

Status

()

defect
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: efaust, Unassigned)

Tracking

({dev-doc-complete, site-compat})

unspecified
mozilla44
Points:
---

Firefox Tracking Flags

(firefox44 fixed)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Posted patch PatchSplinter Review
By spec, the ArrayBuffer constructor is not callable. Presently, this is only a warning.
Attachment #8673979 - Flags: review?(evilpies)
Blocks: 1062075
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+
https://hg.mozilla.org/mozilla-central/rev/e5dcb06052bf
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.