summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/classes.es6
blob: 9007b992f78bd3a588c592c3db40a65309e43bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class C {
  constructor() {
    this.foo = 'bar';
  }
  bar() {
  }
}

assertEqual(new C().foo, 'bar');

test(function() {
  return new C();
});