Closed
Bug 1232264
Opened 9 years ago
Closed 9 years ago
Make the SharedArrayBuffer constructor throw if invoked without 'new'
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla46
People
(Reporter: anba, Assigned: lth)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
5.08 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
Similar to bug 1214936: Calling `SharedArrayBuffer` without `new` should throw a TypeError [1]. Test case: --- SharedArrayBuffer(new SharedArrayBuffer(1)) --- Expected: Throws TypeError Actual: Returns input SharedArrayBuffer object [1] http://lars-t-hansen.github.io/ecmascript_sharedmem/shmem.html#StructuredData.SharedArrayBuffer.constructor.withLength
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8698421 -
Flags: review?(arai.unmht)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Comment 3•9 years ago
|
||
Comment on attachment 8698421 [details] [diff] [review] SharedArrayBuffer is only a constructor Review of attachment 8698421 [details] [diff] [review]: ----------------------------------------------------------------- :)
Attachment #8698421 -
Flags: review?(arai.unmht) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ebd9b147a2a49abe0a9b4144c4d8b1d3c9193ce Bug 1232264 - SharedArrayBuffer is only a constructor. r=arai
Comment 5•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4ebd9b147a2a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•9 years ago
|
Keywords: dev-doc-needed,
site-compat
Comment 6•9 years ago
|
||
This may not require dev docs since SharedArrayBuffer is only available on Nightly so far...
Keywords: dev-doc-needed,
site-compat
Assignee | ||
Comment 7•9 years ago
|
||
kohei, don't know what the rules are for that, but SharedArrayBuffer will ride the trains (behind a pref) from FF46, see bug 1225406 (which btw is flagged dev-doc-needed).
Comment 8•8 years ago
|
||
Putting back ddn. I am going to work on SAB docs soon and this is a nice reminder to document this behavior.
Keywords: dev-doc-needed
Comment 9•8 years ago
|
||
Added a note here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#Constructing_is_required_with_new_operator
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•