Closed
Bug 757551
Opened 13 years ago
Closed 13 years ago
Remove JS_ConstructObject* APIs
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: Waldo, Assigned: Waldo)
Details
(Keywords: dev-doc-complete, Whiteboard: [js:t])
Attachments
(1 file, 1 obsolete file)
6.96 KB,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
These methods don't act like anything people would be familiar with (new Ctor(...), more specifically). They're only used by E4X internals in all of Mozilla. We should remove them.
I sent a query out to the newgroup to see if anyone's using these, and if so how to address any use case they might have (however awkwardly) been fulfilling:
https://groups.google.com/forum/?fromgroups#!topic/mozilla.dev.tech.js-engine/5xqxa2IAOoQ
Updated•13 years ago
|
Whiteboard: [js:t]
Assignee | ||
Comment 1•13 years ago
|
||
Some people are using these APIs, and I'm still working through trying to migrate them to something better (probably JS_New for the most part). Just posting this to get it in the database for now...
Assignee | ||
Comment 2•13 years ago
|
||
One response in the newsgroups we determined could be worked through with JS_New. The other response mentioned they used the methods but never responded to my response asking if JS_New wouldn't work to address them. So going by that, one embedder has a reasonable workaround, and another hasn't said he doesn't.
At some point you have to move forward, so let's put this up for review now. (I sent one last newsgroup ping noting I was putting the patch up for review, for anyone who missed the earlier bits of the thread.)
Attachment #627066 -
Attachment is obsolete: true
Attachment #628783 -
Flags: review?(dmandelin)
Updated•13 years ago
|
Attachment #628783 -
Flags: review?(dmandelin) → review+
Assignee | ||
Comment 3•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fa952692a8c
I marked these methods as obsolete:
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_ConstructObject
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference#section_8
I also noted these methods' removal in release notes:
https://developer.mozilla.org/en/SpiderMonkey/1.8.8
Keywords: dev-doc-complete
Target Milestone: --- → mozilla16
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•