|
|
JavaScript 1.3 changes from EcmaScript
|
Resin 1.0 follows most of the additions Netscape's JavaScript 1.3 makes
to EcmaScript. It does not add the changes to the function
arguments variable.
- Literals
- Expressions
- Added === and !==, the strict equality operators.
- Statements
- Object Object
- Array Object
- Function Object
- String Object
- Added RegExp Object
- Added Packages Object
Resin 1.0 changes from JavaScript 1.3
|
The Resin changes from JavaScript 1.3 fall under the following categories.
- Enhancements allowing scripts to more clearly express
their intensions.
- Enhancements allowing scripts robustly handle exceptions and execute in
a threaded environment.
- Library changes following Java APIs when they conflict with
JavaScript.
Resin will faithfully execute scripts restricting themselves to EcmaScript.
- Literals
- Statements
- Expressions
- `
if (a = 3) ' is no longer allowed. Assigments used as
truth values must have an extra pair of parentheses.
-
fun\n(2, 3, 4) automatically inserts a semicolon at
the newline.
-
eval is a keyword. The only
practical difference is that scripts cannot assign
eval
to a variable.
-
arguments no longer has the
caller property.
- Libraries
- The file and stream
model is completely different from JavaScript 1.3.
- The database model fullows JDBC, differing from
JavaScript 1.3
- The session model fullows JSDK, differing from JavaScript 1.3
Copyright © 1998-2000 Caucho Technology. All rights reserved.
Last modified: Thu, 16 Sep 1999 14:56:48 -0700 (PDT)
|