Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#476 closed task (fixed)

Use JS_New for ScriptInterface::CallConstructor

Reported by: Philip Taylor Owned by:
Priority: Nice to Have Milestone: Alpha 3
Component: Core engine Keywords:
Cc: Patch:

Description

The new JS_New function looks like it does what ScriptInterface::CallConstructor attempts to emulate. We should update to a SpiderMonkey version that includes that function, and then use it (and make sure it doesn't change the behaviour in a way that breaks anything).

Change History (7)

comment:1 by Erik Johansson, 14 years ago

Does this mean you want to update to another SpiderMonkey version relatively soonish or just that you want to remember to update to a version supporting this some time in the future? I'm just asking since it would be nice to have sorted out a relatively stable version before the Alpha (by relatively stable I mean that we won't change it too soon again). I'm not sure how important it is, but it would at least be nice to hear your thoughts on it.

comment:2 by Philip Taylor, 14 years ago

It's not worthwhile upgrading just for this - better to wait for some new features or important bugfixes so we have to upgrade anyway. (That'll probably be several months, at least.)

I don't think it's necessary to stick with a stable version of SpiderMonkey - it's trivial to recompile the binaries for Windows, and it'll automatically recompile on Linux / OS X, and any bugs or unexpected changes should be caught by our automated tests, so upgrading is pretty cheap and we can do it whenever it seems useful enough.

comment:3 by Erik Johansson, 14 years ago

Ah, sounds good. Just wanted to know for sure :)

comment:4 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:5 by Andrew, 14 years ago

Milestone: Backlog

comment:6 by philip, 13 years ago

Resolution: fixed
Status: newclosed

(In [8638]) Fix #476 (Use JS_New for ScriptInterface::CallConstructor)

comment:7 by Kieran P, 13 years ago

Milestone: BacklogAlpha 3
Note: See TracTickets for help on using tickets.