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  
 New features in Windows Script 5.5 Beta 1
Hi,

Regarding JScript.dll

Any idea why the VB Object Browser shows only a limited
number of methods? For example the String Object only shows
*String().fromCharCode*. Where are all the other methods?

I am using VB5 sp3. Because the SDK Object Browser does the
same thing I thought I would ask- its not a problem with VB.

Regards,

    LiL Endian

Quote:

>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 ;-)



Sun, 19 May 2002 03:00:00 GMT  
 New features in Windows Script 5.5 Beta 1
howdy--

Reading through that list, I swear I kept hearing applause!

T

Quote:

> Oh, good enough to get our heads busy with.
> Thanks, Peter.

> --
> Regards,
> Andrew Nosenko,
> Senior Software Engineer
> Mead & Company



> 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  
 New features in Windows Script 5.5 Beta 1

Quote:
> Hi,

> Regarding JScript.dll

> Any idea why the VB Object Browser shows only a limited
> number of methods? For example the String Object only shows
> *String().fromCharCode*. Where are all the other methods?

Hi,

This is because of JScript's prototype model.

fromCharCode is a method on the String constructor itself, but the other
things are part of the prototype.

Prototype chains don't mesh incredibly well with the COM object model, so
you don't see all the other things in the type library.

Peter

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

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



Sun, 19 May 2002 03:00:00 GMT  
 New features in Windows Script 5.5 Beta 1

Quote:
> howdy--

> Reading through that list, I swear I kept hearing applause!

Thanks - I've passed the message on!

Peter

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

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



Sun, 19 May 2002 03:00:00 GMT  
 New features in Windows Script 5.5 Beta 1
Oh, good enough to get our heads busy with.
Thanks, Peter.

--
Regards,
Andrew Nosenko,
Senior Software Engineer
Mead & Company



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.



Mon, 20 May 2002 03:00:00 GMT  
 New features in Windows Script 5.5 Beta 1

Quote:

> howdy--

> Reading through that list, I swear I kept hearing applause!

Nah, those toPrecision etc. number formatters, they'll just be a pain in the
neck in the Newsgroups - Why doesn't .toPrecision() work in Netscape 2, IE5
etc. etc.

And then they'll just moan at having to write a couple of lines to achieve the
same...

Jim.



Mon, 20 May 2002 03:00:00 GMT  
 
 [ 7 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