class-body-method-definition-super-property.js (449B)
1 // Copyright (C) 2015 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 14.5.1 5 description: > 6 No restrictions on SuperProperty 7 ---*/ 8 class A { 9 constructor() { 10 super.toString(); 11 } 12 dontDoThis() { 13 super.makeBugs = 1; 14 } 15 } 16 17 18 assert.sameValue(typeof A, "function"); 19 20 var a = new A(); 21 22 a.dontDoThis(); 23 assert.sameValue(a.makeBugs, 1); 24 25 reportCompare(0, 0);