The ECMAScript standard (edition 2) defined the catch keyword and reserves it for future use. Edition 3 mandates that this should now be supported in a compliant interpreter.
In anticipation of that, it is available in JavaScript version 1.4. This is also now supported in JScript version 5.0 as well.
Refer to the try ... catch ... finally topic for more details.
ECMA 262 edition 2 - section - 7.4.3
ECMA 262 edition 3 - section - 7.5.2
ECMA 262 edition 3 - section - 12.14
Prev | Home | Next |
Cast operator | Up | Category of an object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |