WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / class_computed_static_accessor_properties.js
1 function test() {
2
3 var garply = "foo", grault = "bar", baz = false;
4 class C {
5   static get [garply]() { return "foo"; }
6   static set [grault](x) { baz = x; }
7 }
8 C.bar = true;
9 return C.foo === "foo" && baz;
10       
11 }
12
13 if (!test())
14     throw new Error("Test failed");
15