Last Comment Bug 684557 - JS_LookupPropertyWithFlagsById()'s documentation does not include objp parameter
: JS_LookupPropertyWithFlagsById()'s documentation does not include objp parameter
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: general
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-03 21:14 PDT by Nathan Phillip Brink (binki)
Modified: 2011-09-07 14:10 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Nathan Phillip Brink (binki) 2011-09-03 21:14:00 PDT
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 Andreas Gal :gal 2011-09-03 21:16:47 PDT
objp the object along the prototype chain the property was actually found on (obj is where the lookup starts).
Comment 2 David Mandelin [:dmandelin] 2011-09-07 14:10:56 PDT
I just updated the doc.

Note You need to log in before you can comment on or make changes to this bug.