Closed
Bug 770196
Opened 12 years ago
Closed 9 years ago
Reimplement js_HasOwnProperty in terms of getOwnPropertyDescriptor
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1124201
People
(Reporter: jorendorff, Unassigned)
Details
(Whiteboard: [js:t])
js_HasOwnProperty(cx, obj, id ...) works like this:
1. lookup the property obj[id]
2. if the property is found on obj itself, result = true.
3. else if obj is an outer object and the property is found on obj's inner object, result = true.
4. else result = false.
Step 3 is pretty ridiculous, especially since we have GetOwnPropertyDescriptor now.
Updated•12 years ago
|
Whiteboard: [js:t]
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Comment 1•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•