Closed
Bug 1163423
Opened 9 years ago
Closed 9 years ago
Introduce JS_HasOwnProperty
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: evilpie, Assigned: evilpie)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
2.46 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
3.78 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
We already have JS_AlreayHasOwnProperty, but that function doesn't call resolve hooks. Maybe worth looking into if we can remove it.
Attachment #8603865 -
Flags: review?(bhackett1024)
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Keywords: dev-doc-needed
Updated•9 years ago
|
Attachment #8603865 -
Flags: review?(bhackett1024) → review+
Comment 2•9 years ago
|
||
> Maybe worth looking into if we can remove it.
So looking at consumers of JS_AlreadyHasOwnProperty(ById):
1) DOMProxyShadows is using it on the expando, so could use JS_HasOwnPropertyById. Assuming that's not slower, of course.
2) In DefineConstructor, I'm not exactly sure why we need that check. It might be possible to remove it, if we know that the global's resolve hook will always resolve the relevant properties before someone has a chance to redefine them.
3) Plugin code, no idea. But those objects _do_ have resolve hooks, so need to check carefully.
4) XBL, pretty sure is working on objects with no resolve hooks only.
5) Xrays, working with holder objects, which have no resolve hook.
Attachment #8603866 -
Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/e7886e8be8fb https://hg.mozilla.org/integration/mozilla-inbound/rev/efef07486dde
https://hg.mozilla.org/mozilla-central/rev/e7886e8be8fb https://hg.mozilla.org/mozilla-central/rev/efef07486dde
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Updated•4 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•