Static Wikipedia February 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Web Analytics
Cookie Policy Terms and Conditions ECMAScript - Wikipedia, the free encyclopedia

ECMAScript

From Wikipedia, the free encyclopedia

ECMAScript
Paradigm: multi-paradigm
Appeared in: 1997
Designed by: Brendan Eich, Ecma International
Typing discipline: duck typing, weak, dynamic
Dialects: JavaScript, ActionScript, JScript, JScript .NET, DMDScript, InScript
Influenced by: Self, HyperTalk, AWK, Java, Perl
ECMAScript
File extension: .es
MIME type: application/ecmascript[1]

ECMAScript is a scripting programming language, standardized by Ecma International in the ECMA-262 specification. The language is widely used on the web, and is often referred to as JavaScript or JScript, after the two primary implementations of the specification.

Contents

[edit] History

In December 1995 Sun Microsystems and Netscape Communications Corporation introduced JavaScript[2]. In March 1996 Netscape Communications Corporation released Netscape Navigator 2.0, which featured support for JavaScript. Due to the de facto success of JavaScript as a client-side scripting language for web pages, Microsoft developed a "roughly" compatible language known as JScript, which was included in Internet Explorer 3.0, released in August 1996.

Netscape submitted the JavaScript specification to Ecma International for standardization; the work on the specification, ECMA-262, began in November 1996. The first edition of ECMA-262 was adopted by the ECMA General Assembly of June 1997.

ECMAScript is the name of the scripting language standardized in ECMA-262. Both JavaScript and JScript technologies aim to be compatible with ECMAScript, while providing additional features not described in the ECMA specification.

The name "ECMAScript" was a compromise between the organizations involved in standardizing the language, especially Netscape and Microsoft. Brendan Eich, the creator of JavaScript, is on record as saying that "ECMAScript was always an unwanted trade name that sounds like a skin disease."[3]

[edit] Versions

There are three editions of ECMA-262 published, and the work on the fourth edition is in progress.

Edition Date published Differences to the previous edition
1 June 1997 First edition, editor Guy L. Steele, Jr.
2 June 1998 Editorial changes to keep the specification fully aligned with ISO/IEC 16262 international standard; editor Mike Cowlishaw.
3 December 1999 Added regular expressions, better string handling, new control statements, try/catch exception handling, tighter definition of errors, formatting for numeric output and other enhancements; editor Mike Cowlishaw.
4 Work in progress Multiple new concepts and language features - see the section "Fourth edition" below

In June 2004 Ecma International published ECMA-357 standard, defining an extension to ECMAScript, known as E4X (ECMAScript for XML).

[edit] Dialects

ECMAScript is supported in many applications, especially web browsers, where it's commonly called JavaScript. Dialects typically include their own, different standard libraries, of which some are standardized separately – such as the W3C-specified DOM. Some implementations, such as ActionScript used in Flash, have a completely different set of libraries. This means that applications written in one dialect of ECMAScript will not likely work in another, unless they are designed to be compatible.

Application Dialect Latest dialect version Corresponding ECMAScript edition
Gecko-based browsers and other programs embedding SpiderMonkey, including Mozilla Firefox JavaScript 1.7 ECMA-262, edition 3 1
Internet Explorer JScript 5.7 ECMA-262, edition 3
Opera ECMAScript, with extensions to both JavaScript and JScript 1.3/1.5 ECMA-262, edition 3
KHTML based browsers, including KDE's Konqueror JavaScript 1.5 ECMA-262
Microsoft .NET Framework JScript .NET 8.0 ECMA-262, edition 3 2
Adobe Flash and Adobe Flex ActionScript 2

3

ECMA-262, edition 3 3

ECMA-262, edition 4 4

Adobe Acrobat JavaScript 1.5 ECMA-262, edition 3
General purpose scripting language DMDScript 1.06 ECMA-262
OpenLaszlo Platform JavaScript 1.4 ECMA-262, edition 3 5
iCab InScript 3.22 ECMA-262, edition 3
Samba 4 and embedded servers. (ASCII only, no floats; removes: try catch throw break continue switch while do with === !== <<< >>>, prefix ++ --, regular expressions, array and object literals, Number, Date, Regex, various methods) Embedded JavaScript unknown ECMA-262

Note (1): Gecko 1.8.1 has partial support of E4X [1] and a few other features, see New in JavaScript 1.7.

Note (2): Microsoft claims that JScript 8.0 supports "almost all of the features of the ECMAScript Edition 3 Language Specification" but does not list the unsupported features.

Note (3): In addition to supporting ECMA-262 edition 3, ActionScript 2 also included support of properties, methods, and mechanisms that were proposed in early draft specifications of as yet unseen versions of ECMAScript. It remains to be seen if ActionScript will stay in sync with future changes to the ECMAScript specifications.

Note (4): As claimed by Adobe, it implements the preliminary edition 4 of ECMA-262 [2]

Note (5): As stated by OpenLaszlo, it partially implements edition 3 of ECMA-262 [3]

The Mozilla implementations, (SpiderMonkey in the C programming language and Rhino in the Java programming language), are used in several third-party programs, including the Yahoo! Widget Engine (Konfabulator) and the Macintosh system-level scripting language JavaScript OSA.

Apple's Safari uses JavaScriptCore which is based on the KDE KJS library.

[edit] Version correspondence

The following table is based on [4] and [5]; items on the same line are approximately the same language.

JavaScript JScript ECMAScript
1.0 (Netscape 2.0, Mar 1996) 1.0 (IE 3.0 - early versions, Aug 1996)
1.1 (Netscape 3.0, Aug 1996) 2.0 (IE 3.0 - later versions, Jan 1997)
1.2 (Netscape 4.0, Jun 1997)
1.3 (Netscape 4.5, Oct 1998) 3.0 (IE 4.0, Oct 1997) edition 1 (June 1997) / edition 2 (June 1998)
1.4 (Netscape Server only) 4.0 (Visual Studio 6, no IE release)
5.0 (IE 5.0, Mar 1999)
5.1 (IE 5.01)
1.5 (Netscape 6.0, Nov 2000; also
later Netscape and Mozilla releases)
5.5 (IE 5.5, Jul 2000) edition 3 (Dec 1999)
5.6 (IE 6.0, Oct 2001)
1.6 (Gecko 1.8, Firefox 1.5, November 2005) edition 3, with some compliant enhancements: E4X, Array extras (e.g. Array.prototype.forEach), Array and String generics [6]
1.7 (Gecko 1.8.1, Firefox 2, October 2006) edition 3 plus all JavaScript 1.6 enhancements, plus Pythonic generators and array comprehensions ([a*a for (a in iter)]), block scope with let, destructuring assignment (var [a,b]=[1,2]) [7]
JScript .NET (ASP.NET; no IE release) (JScript .NET is said to be designed with the participation of other ECMA members)
JavaScript 2.0 edition 4 (work in progress; see the section "Fourth edition" below)

[edit] Fourth edition

The ECMA-262 fourth edition is the first major update to ECMAScript since the third edition published in 1999. The new version of the language is backwards compatible with ECMAScript 3 while adding multiple new features, such as:

  • Classes
  • Packages and namespaces
  • Optional static typing
  • Generators and iterators
  • Destructuring assignment (likely)

An export of ECMAScript 4 committee wiki is located at http://developer.mozilla.org/es4/ (note that the wiki is not exported regularly, so those documents are likely to be outdated).

ECMAScript 4 intends to better support "programming in the large" and to let programmers sacrifice some of the script dynamism for performance. For example, Tamarin—the virtual machine for ActionScript developed and open sourced by Adobe—has JIT compilation support for certain classes of scripts.

[edit] See also

[edit] References

[edit] External links

Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2006 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu