Closed
Bug 702507
Opened 13 years ago
Closed 13 years ago
can we remove JSCLASS_CONSTRUCT_PROTOTYPE and JS_IsConstructing_PossiblyWithGivenThisObject?
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: luke, Assigned: luke)
Details
Attachments
(1 file)
6.54 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
The semantics of both JSCLASS_CONSTRUCT_PROTOTYPE and JS_IsConstructing_PossiblyWithGivenThisObject are quite confusing.
The last remaining uses were removed (presumably by waldo's sanity-bringing InitClass changes) which of course means they became immediately, and flagrantly, broken. Since I think these were mostly for internal use, can we remove 'em? I'll ask on the newsgroup as well.
Assignee | ||
Comment 1•13 years ago
|
||
Also, thanks to bsdunx on irc for pointing this out.
Comment 2•13 years ago
|
||
They were only for E4X, as grep discloses:
$ grep CONSTRUCT_PROTO *cpp
jsobj.cpp: if (clasp->flags & JSCLASS_CONSTRUCT_PROTOTYPE) {
jsobj.cpp: * JSCLASS_CONSTRUCT_PROTOTYPE flags, and the instance does not have its
jsobj.cpp: JSCLASS_CONSTRUCT_PROTOTYPE)) &&
jsxml.cpp: JSCLASS_CONSTRUCT_PROTOTYPE |
jsxml.cpp: JSCLASS_CONSTRUCT_PROTOTYPE |
jsxml.cpp: JSCLASS_CONSTRUCT_PROTOTYPE |
jsxml.cpp: JSCLASS_CONSTRUCT_PROTOTYPE |
Yank 'em, make sure ES4 tests pass.
/be
Comment 3•13 years ago
|
||
I understand that the GNOME people use J_C_P, although they're doing away with those uses. There was discussion of this on IRC recently; CCing the person who was doing that (I think?).
Comment 4•13 years ago
|
||
Assignee | ||
Comment 5•13 years ago
|
||
No objections on the newsgroup.
Attachment #575208 -
Flags: review?(jwalden+bmo)
Updated•13 years ago
|
Attachment #575208 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Target Milestone: --- → mozilla11
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Assignee | ||
Comment 9•13 years ago
|
||
Marked obsolete.
You need to log in
before you can comment on or make changes to this bug.
Description
•