Closed
Bug 1142296
Opened 9 years ago
Closed 9 years ago
Remove parent argument from NewObjectWithGivenProto
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
34.75 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8576306 -
Flags: review?(jwalden+bmo)
Comment 2•9 years ago
|
||
Comment on attachment 8576306 [details] [diff] [review] Remove the parent argument from NewObjectWithGivenProto Review of attachment 8576306 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsscript.cpp @@ +1355,5 @@ > > ScriptSourceObject * > ScriptSourceObject::create(ExclusiveContext *cx, ScriptSource *source) > { > + RootedObject object(cx, NewObjectWithGivenProto(cx, &class_, NullPtr())); Seems like a bunch of these that pass a constant class should use NewObjectWithGivenProto<T> instead, maybe. (Or maybe we could imagine that class is constant everywhere, because variable class is just weird? Excepting maybe in JSAPI function spots.)
Attachment #8576306 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•9 years ago
|
||
> Seems like a bunch of these that pass a constant class should use
> NewObjectWithGivenProto<T> instead, maybe.
Could be. I can't tell what the rhyme/reason behind these baroque newobject APIs is.... :(
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b105c303ca33
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b105c303ca33
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•