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