param-eval-non-strict-is-correct-value.js (499B)
1 // Copyright (c) 2020 Rick Waldron. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-strict-mode-of-ecmascript 6 description: > 7 eval allowed as formal parameter name of a non-strict function expression 8 flags: [noStrict] 9 ---*/ 10 11 let exprCallCount = 0; 12 let evalValue = {}; 13 14 let foo = function(eval) { 15 assert.sameValue(eval, evalValue); 16 exprCallCount += 1; 17 }; 18 19 foo(evalValue); 20 21 assert.sameValue(exprCallCount, 1); 22 23 reportCompare(0, 0);