Changes
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 Added regular expression literals. Expressions Added === and !==, the strict equality operators. Statements Added do ... while. Added labeled statements. Added switch. Object Object Added toSource. Added unwatch. Added watch. Array Object Added concat. Added pop. Added push. Added shift. Added unshift. Added slice. Added splice. Function Object Added apply. Added call. String Object Added concat. Added match. Added search. Added slice. Added substr. 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 Added interpulated strings Added multiline strings regular expressions support Perl5 syntax. Statements Added class Added catch Added finally Added throw Added synchronize Added import 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)