Closed Bug 903571 Opened 11 years ago Closed 11 years ago

HasPropertyOnPrototype actually does a property get

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

It looks like this:

1353   return !GetPropertyOnPrototype(cx, obj, id, &found, NULL) || found;

Is there a reason we're not using JS_HasPropertyById directly here?
Flags: needinfo?(peterv)
We're not doing a property get; the actual get is guarded on the NULL in that line not being null.
Bah.  We should document that!  I'll throw that into bug 895758.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(peterv)
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.