Closed Bug 684557 Opened 13 years ago Closed 13 years ago

JS_LookupPropertyWithFlagsById()'s documentation does not include objp parameter

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ohnobinki, Unassigned)

Details

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.
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
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.