J
John G Harris
Most certainly it doesn't. Your logic is flawed.
JavaScript is an implementation of ECMAScript. It implements this Language
Specification, and extends it as the Specification allows. That does not
mean that ECMAScript is a part of JavaScript, that is just nonsense.
So that's where the problem lies. I'm afraid Netscape's idea of what
JavaScript is differs from your idea. Here are three quotes from NN4's
online manuals. The first two come from the online JavaScript Reference,
the third from the online JavaScript Guide.
"Client-Side JavaScript Reference
This book is a reference manual for the JavaScript language, including
both core and client-side JavaScript for version 1.3. JavaScript is
Netscape's cross-platform, object-based scripting language for client
and server applications."
"About this Book
JavaScript is Netscape's cross-platform, object-based scripting language
for client and server applications. This book is a reference manual for
the JavaScript language, including both core and client-side
JavaScript."
"JavaScript and ECMA Terminology
The ECMA specification uses terminology and syntax that may be
unfamiliar to a JavaScript programmer. Although the description of the
language may differ in ECMA, the language itself remains the same.
JavaScript supports all functionality outlined in the ECMA
specification."
Points to note :
1 Netscape defined JavaScript to be a language, not an implementation of
some (unnamed) language.
2 Netscape declared that ECMA 262 specifies part of JavaScript. Thus the
set of all ECMAScript's legal productions (code strings) is a subset of
JavaScript's, and their behaviour is the same. Also, any objects
required in an ECMAScript execution environment are also required in a
JavaScript execution environment.
You could say that ECMAScript is a subset of JavaScript but that would
be a mild abuse of language. You can certainly say that ECMAScript is
the core language of JavaScript.
<snip>
John