Closed Bug 1019334 Opened 11 years ago Closed 11 years ago

Remove TypedArray's (JSObject*) constructor overload

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: Waldo, Assigned: Waldo)

Details

Attachments

(1 file)

TypedArray's object-taking constructor is sort of broken. Remove it.
Attached patch PatchSplinter Review
Attachment #8432945 - Flags: review?(bzbarsky)
Comment on attachment 8432945 [details] [diff] [review] Patch Why not just have the one-arg ctor call Init() instead of making all the consumers do it?
Flags: needinfo?(jwalden+bmo)
Because then people have to check inited() themselves, manually, and remember to do it. Whereas if Init() is required to do anything, there's an existing call that must be made, and the burden of checking its return value is somewhat more obvious.
Flags: needinfo?(jwalden+bmo)
Comment on attachment 8432945 [details] [diff] [review] Patch OK, that's fair. I had mostly designed this constructor for those cases where you're MOZ_ASSERTing inited, but alright.
Attachment #8432945 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: