blob: 0c3cfc7a77803e5eb44cfa83da62eb28d38a0538 [file] [log] [blame]
This page tests exceptions thrown from 'new' expressions. If the test passes, you'll see a series of PASS messages below.
FAIL: e1 should be 'TypeError: 'undefined' is not a constructor (evaluating 'new f')' but instead is 'TypeError: undefined is not a constructor (evaluating 'new f')'.
FAIL: e2 should be 'TypeError: 'undefined' is not a function (evaluating 'g()')' but instead is 'TypeError: undefined is not a function (evaluating 'g()')'.