Talk:JScript

From Wikipedia, the free encyclopedia

Regarding: "When web developers talk about using JavaScript in Internet Explorer, they silently mean JScript in Internet Explorer." I think this statement is a) vauge b) confusing c) most likely false If an html page contains <SCRIPT language="javascript"> etc., then IE is going to read this script as javascript. IE does not translate javascript into JSCRIPT behind the scenes. Developers do not write <SCRIPT language="jscript"> if they intend a page to render on IE only (which is an unheard of practice anyway). JSCRIPT is more often used in ASP pages as a server-side scripting language. August 17, 2005 BJF

  • Well, you are right in that IE does not translate JavaScript into JScript behind the scenes. Instead it will read it directly as JScript, which is (at least) mostly compatible with JavaScript. Because of that, yes you are right that developers do not write <SCRIPT language="jscript"> if they intend a page to render on IE only (which is an unheard of practice anyway). Yuhong 15:45, 10 January 2006 (UTC)

[edit] Garbage Collection

SpiderMonkey also uses mark-and-sweep garbage collection, but I can't find anything stating whether it's generational or non-generational. -- General Wesc 15:12, 17 September 2006 (UTC)

Judging by jsarena.h, I'd say SpiderMonkey's generational, but I'm not certain. -- General Wesc 18:51, 17 September 2006 (UTC)
I am not certain, although there definitely is a difference, causing any object with a circular reference to a native object in IE to leak memory (as if those were reference-counted, or rooted), while this does not occur with SpiderMonkey used in Mozilla based browsers --66.11.179.30 09:25, 20 September 2006 (UTC)