Closed
Bug 1140399
Opened 10 years ago
Closed 10 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•10 years ago
|
||
Attachment #8573963 -
Flags: review?(jdemooij)
Comment 2•10 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•10 years ago
|
||
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 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
•