We should not keep the JavaScript tests inside the Source/JavaScriptCore/ directory.
[WebKit-https.git] / JSTests / es6 / function_name_property_class_statements.js
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