Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

New features in Windows Script 5.5 Beta 1

0 views
Skip to first unread message

Peter Torr (MS)

unread,
Dec 1, 1999, 3:00:00 AM12/1/99
to
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
pt...@microsoft.com - http://msdn.microsoft.com/scripting/
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.


0 new messages