Talk:JScript
![]() | Computing: Software Unassessed | ||||||||||||
|
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)
- IE loads the script engine registered to handle the language requested in the script tag. On a standard Windows installation (checking on WinXP SP2), JScript, ECMAScript, JavaScript, JavaScript1.1, JavaScript1.2, JavaScript1.3 and LiveScript all maps to the Microsoft JScript engine. However, it is perfectly possible to configure the system to use different engines for these languages. PhMajerus 17:01, 13 April 2007 (UTC)
- Specifying "JScript" explicitely as the language both makes sure that the JScript engine is used even if other engines are configured to handle other related languages, and make browsers that do not support JScript language extensions ignore that script block. So specifying JScript, ECMAScript or javascript explicitely depending on the language features required to run the script can be used to hide a script from browsers that do not support that specific version of the language PhMajerus 17:01, 13 April 2007 (UTC)
- Note JScript 5.7 (included in Windows Internet Explorer 7.0) includes a JScript.Compact engine. While JScript is a superset of the full ECMAScript (ECMA-262), JScript.Compact limits its features to those required by the ECMAScript Compact Profile (ES-CP, ECMA-327). A runtime error is thrown when a feature not required by the ES-CP specifications is used. (I could not find official information about JScript.Compact, I discovered this engine when experimenting with JScript 5.7) PhMajerus 17:01, 13 April 2007 (UTC)
OK so why remove that sentence?
It seems that many pages use the terms JavaScript when they really mean "Jscript" and that sentence ("When web developers talk about using JavaScript in Internet Explorer, they silently mean JScript in Internet Explorer.") is very helpful. See, e.g., this page. What I want to know is whether IE implements JavaScript or JScript. Is it possible to force IE to use JavaScript and not Jscript? It appears that if it is IE, then it is executing Jscript and not JavaScript. This is an important fact that should not be left out of the article. I suggest reinserting the sentence or something like it.--Lenehey 00:18, 17 July 2007 (UTC)
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)
Created vs plagiarized
JScript is a computer programming language created by Microsoft and is a superset of the ECMAScript programming language. or better JScript is a computer programming language plagiarized by Microsoft and is a superset of the ECMAScript programming language.
- It also seemed weird to me, fixed. --asqueella 13:16, 12 August 2007 (UTC)
Browsers
So Jscript only appears in internet explorer browsers as it is microsoft only? Transaction Go (talk) 06:52, 9 September 2009 (UTC)