The default bug view has changed. See this FAQ.

JS_LookupPropertyWithFlagsById()'s documentation does not include objp parameter

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Nathan Phillip Brink (binki), Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_LookupProperty documents JS_LookupPropertyWithFlagsById()'s signature to be:

    JSBool JS_LookupPropertyWithFlagsById(JSContext *cx, JSObject *obj, jsid id, uintN flags, jsval *vp);

The actual signature is:

    JS_LookupPropertyWithFlagsById(JSContext *cx, JSObject *obj, jsid id, uintN flags, JSObject **objp, jsval *vp);

There is no explanation about what objp is used for.

Comment 1

6 years ago
objp the object along the prototype chain the property was actually found on (obj is where the lookup starts).
I just updated the doc.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.