blob: 23bcc8c9175847daa5e6e4ec6e5e7540d8f63d9a [file] [log] [blame]
function test() {
var garply = "foo", grault = "bar", baz = false;
class C {
static get [garply]() { return "foo"; }
static set [grault](x) { baz = x; }
}
C.bar = true;
return C.foo === "foo" && baz;
}
if (!test())
throw new Error("Test failed");