WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / class_class_name_is_lexically_scoped.js
1 function test() {
2
3 class C {
4   method() { return typeof C === "function"; }
5 }
6 var M = C.prototype.method;
7 C = undefined;
8 return C === undefined && M();
9       
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14