When the Error() constructor is called as a function, it creates and initializes a new Error object. The function call Error() is equivalent to the expression new Error() with the same arguments.
See also: | Error.prototype |
Prev | Home | Next |
Error() | Up | Error.constructor |
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. |