blob: 4a8850a536ff0a869b0e9a5ff786f61cf9362d59 [file] [log] [blame]
rniwa@webkit.org12045462015-03-17 05:55:46 +00001Tests for calling the constructors of ES6 classes
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
saambarati1@gmail.com06e39132015-07-31 21:05:19 +00006PASS new A
7PASS A():::"TypeError: Cannot call a class constructor"
8PASS new B
9PASS B():::"TypeError: Cannot call a class constructor"
10PASS new (class { constructor() {} })()
11PASS (class { constructor() {} })():::"TypeError: Cannot call a class constructor"
utatane.tea@gmail.comc5ccd8e2015-10-11 18:46:52 +000012PASS new (class extends null { constructor() { super() } })():::"TypeError: function is not a constructor (evaluating 'super()')"
saambarati1@gmail.com06e39132015-07-31 21:05:19 +000013PASS (class extends null { constructor() { super() } })():::"TypeError: Cannot call a class constructor"
rniwa@webkit.orge6f83492015-03-13 23:01:51 +000014PASS successfullyParsed is true
15
16TEST COMPLETE
17