early-body-super-prop.js (493B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2016 the V8 project authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 esid: sec-function-definitions-static-semantics-early-errors 6 es6id: 14.1.2 7 description: Body may not contain a "super" property reference 8 info: | 9 It is a Syntax Error if FunctionBody Contains SuperProperty is true. 10 negative: 11 phase: parse 12 type: SyntaxError 13 ---*/ 14 15 $DONOTEVALUATE(); 16 17 0, function() { 18 super.x; 19 };