New features in Windows Script 5.5 Beta 1 
Author Message
 New features in Windows Script 5.5 Beta 1

Hi,

Here (below) is a *very* brief list of what's new - you can probably figure
out what most of them mean without the docs ;-)

Wait for the Scripting Clinic for more details!

Peter

--
Peter J. Torr - Microsoft Windows Script Program Manager

Please do not e-mail me with questions - post them to this
newsgroup instead. Thankyou!

JScript 5.5 Changes
===================
*   Support for Unicode source files, identifiers, etc.
*   in operator:
      if (x in obj)
      {
          // obj has property x
      }

*   toLocaleString on Number, Date, and Array objects.
*   finally exception-handling construct:

      try
      {
          // stuff that may cause an error
      }
      catch(e)

          // code that executes if error occurred
      }
      finally
      {
          // code that always executes
      }

Global object
=============
*   undefined - new property
*   decodeURI(uri) - new method
*   encodeURI(str) - new method
*   decodeURIComponent(uri) - new method
*   encodeURIComponent(str) - new method
*   ConversionError, EvalError, RangeError, ReferenceError, RegExpError,
SyntaxError, TypeError, URIError - new constructors

Object object
=============
*   Object.prototype.hasOwnProperty(prop) - new method
*   Object.prototype.isPrototypeOf(obj) - new method
*   Object.prototype.propertyIsEnumerable(prop) - new method

Function object
===============
*   Function.prototype.apply(thisObj, argArray) - new method
*   Function.prototype.call(thisObj, arg1, arg2, ...) - new method
*   arguments object has new callee property

Array object
============
*   Array.prototype.concat(item1, item2, ...) - method can take zero or more
arguments
*   Array.prototype.pop - new method
*   Array.prototype.push(item1, item2, ...) - new method
*   Array.prototype.shift - new method
*   Array.prototype.splice(start, delCount, item1, item2, ...) - new method
*   Array.prototype.unshift(item1, item2, ...) - new method

String object
=============
*   String.prototype.localeCompare(str) - new method
*   String.prototype.replace can take a function as a replacement value, and
new tokens $$, $`, $', $_, $&, and $+
*   String.prototype.toLocaleLowerCase - new method
*   String.prototype.toLocaleUpperCase - new method

Number object
=============
*   Number.prototype.toFixed(digits) - new method
*   Number.prototype.toExponential(digits) - new method
*   Number.prototype.toPrecision(digits) - new method

Date object
===========
*   Date.prototype.toDateString - new method
*   Date.prototype.toTimeString - new method
*   Date.prototype.toLocaleDateString - new method
*   Date.prototype.toLocaleTimeString - new method

RegExp object
=============
*   Non-greedy matching - <quantifier>?
*   Non-capturing parenthesis - (?:<pat>)
*   Zero-width positive lookahead - (?=<pat>)
*   Zero-width negative lookahead - (?!<pat>)
*   Multi-line property m to the flags section of a regular expression
*   Up to 99 capturing parenthesis.
*   RegExp.prototype.exec return array has two additional properties - index
and input
*   RegExp.prototype.test updates the lastIndex property of the object
*   RegExp.prototype.toString - new method
*   global - new property of RegExp instances
*   ignoreCase - new property of RegExp instances
*   multiline - new property of RegExp instances

Error object
============
*   Error.prototype.name - new property
*   Error.prototype.message - new property

VBScript 5.5 Changes
====================

* Make RegExps as powerful as they are in JScript.



Sun, 19 May 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. New features in Windows Script 5.5 Beta 1

2. New features in Windows Script 5.5 Beta 1

3. Windows Script 5.5 Beta 1 setup for Windows 2000 available

4. Windows Script 5.5 Beta 1 setup for Windows 2000 available

5. New Scripting Clinic posted covering new WSH Beta 2 features

6. Windows Script 5.5 Beta 1 ships!

7. Windows Script 5.5 Beta 2

8. ANN: Windows Script 5.5 Beta 1 available

9. Windows Script 5.5 Beta 1 ships!

10. ANN: Windows Script 5.5 Beta 1 available

11. Can WSH beta 5.5 be installed on Windows ME

 

 
Powered by phpBB® Forum Software