summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/syntax/class-body-method-definition-super-property.js
blob: 0d98925d674da81d547db16108e7c353d3f9e98d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.5.1
description: >
    No restrictions on SuperProperty
---*/
class A {
  constructor() {
    super.toString();
  }
  dontDoThis() {
    super.makeBugs = 1;
  }
}


assert.sameValue(typeof A, "function");

var a = new A();

a.dontDoThis();
assert.sameValue(a.makeBugs, 1);

reportCompare(0, 0);