Closed
Bug 1140399
Opened 9 years ago
Closed 9 years ago
Add friend API to check whether a function has a JSNative and get the JSNative of a function
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Need this for bug 1131802.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8573963 -
Flags: review?(jdemooij)
Comment 2•9 years ago
|
||
Comment on attachment 8573963 [details] [diff] [review] Add friend API to check whether a given function object has a JSNative and to get that JSNative as needed Review of attachment 8573963 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. ::: js/src/jsfriendapi.h @@ +2393,5 @@ > > +namespace js { > + > +static MOZ_ALWAYS_INLINE shadow::Function * > +FunctionObjectToShadowFunction(JSObject* fun) Nit: JSObject *fun @@ +2395,5 @@ > + > +static MOZ_ALWAYS_INLINE shadow::Function * > +FunctionObjectToShadowFunction(JSObject* fun) > +{ > + MOZ_ASSERT(js::GetObjectClass(fun) == FunctionClassPtr); Nit: can remove the js:: here.
Attachment #8573963 -
Flags: review?(jdemooij) → review+
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5de3c4e663e7
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5de3c4e663e7
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
•