ggaren@apple.com | 961dc37 | 2015-09-04 02:39:20 +0000 | [diff] [blame] | 1 | function test() { |
2 | |||||
3 | class foo {}; | ||||
4 | class bar { static name() {} }; | ||||
5 | return foo.name === "foo" && | ||||
6 | typeof bar.name === "function"; | ||||
7 | |||||
8 | } | ||||
9 | |||||
10 | if (!test()) | ||||
11 | throw new Error("Test failed"); | ||||
12 |