rniwa@webkit.org | 1204546 | 2015-03-17 05:55:46 +0000 | [diff] [blame] | 1 | Tests for calling the constructors of ES6 classes |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
saambarati1@gmail.com | 06e3913 | 2015-07-31 21:05:19 +0000 | [diff] [blame] | 6 | PASS new A |
| 7 | PASS A():::"TypeError: Cannot call a class constructor" |
| 8 | PASS new B |
| 9 | PASS B():::"TypeError: Cannot call a class constructor" |
| 10 | PASS new (class { constructor() {} })() |
| 11 | PASS (class { constructor() {} })():::"TypeError: Cannot call a class constructor" |
utatane.tea@gmail.com | c5ccd8e | 2015-10-11 18:46:52 +0000 | [diff] [blame] | 12 | PASS new (class extends null { constructor() { super() } })():::"TypeError: function is not a constructor (evaluating 'super()')" |
saambarati1@gmail.com | 06e3913 | 2015-07-31 21:05:19 +0000 | [diff] [blame] | 13 | PASS (class extends null { constructor() { super() } })():::"TypeError: Cannot call a class constructor" |
rniwa@webkit.org | e6f8349 | 2015-03-13 23:01:51 +0000 | [diff] [blame] | 14 | PASS successfullyParsed is true |
| 15 | |
| 16 | TEST COMPLETE |
| 17 | |