haikuwebkit/LayoutTests/js/dom/exception-thrown-from-new-e...

6 lines
451 B
Plaintext

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: g is not a function. (In 'g()', 'g' is undefined)'.