blob: ba7723aa9c0acbfd0b713bdc751bbee2ae15a25b [file] [log] [blame]
description('Tests for scoping of variables in ES6 class syntax');
var local = "FAIL";
function test() {
var local = "PASS";
class A {
getLocal(x) { return local; }
};
return new A().getLocal();
}
shouldBe('test()', '"PASS"');
var successfullyParsed = true;