[Javascript] Try and Catch Question

Benjamin Hawkes-Lewis bhawkeslewis at googlemail.com
Sun Mar 8 09:25:39 CDT 2009


On 8/3/09 11:29, Troy III Ajnej wrote:
> Absolutely everything that requires paranethesis is a function.

That's not true according to the ECMAScript specification.

"try" is a statement. "catch" is a clause in that statement.

All "functions" in ECMAScript are objects. "catch" is not an object.

See especially ECMA 262 sections 8.6.2 and 12.14:

http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf

--
Benjamin Hawkes-Lewis



More information about the Javascript mailing list