Debian Codegraph @

js/src/tests/test262/language/statements/function/param-eval-non-strict-is-correct-value.js

raw
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 declaration
8 flags: [noStrict]
9 ---*/
10
11 let exprCallCount = 0;
12 let evalValue = {};
13
14 function foo(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);