setter-param-eval-strict-inside.js (519B)
1 // |reftest| error:SyntaxError 2 // Copyright (c) 2012 Ecma International. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 es5id: 11.1.5-3-s 6 description: > 7 Strict Mode - SyntaxError is thrown when 'evals' occurs as the 8 Identifier in a PropertySetParameterList of a PropertyAssignment 9 if its FunctionBody is strict code 10 negative: 11 phase: parse 12 type: SyntaxError 13 flags: [noStrict] 14 ---*/ 15 16 $DONOTEVALUATE(); 17 18 void { 19 set x(eval) { 20 "use strict"; 21 } 22 };