haikuwebkit/JSTests/es6/class_methods_arent_enumera...

14 lines
203 B
JavaScript

function test() {
class C {
foo() {}
static bar() {}
}
return !C.prototype.propertyIsEnumerable("foo") && !C.propertyIsEnumerable("bar");
}
if (!test())
throw new Error("Test failed");