blob: 12ec1c9fcfcc38a924cdb2b43957d9c5450a86ca [file] [log] [blame]
//@ requireOptions("--usePublicClassFields=true")
function assert(a, message) {
if (!a)
throw new Error(message);
}
class A {
foo = function() { };
bar = class {};
baz = "test";
}
var a = new A();
assert(a.foo.name == "foo");
assert(a.bar.name == "bar");
assert(a.baz.name == undefined);