Debian Codegraph @

js/src/tests/test262/language/eval-code/direct/var-env-lower-lex-strict-source.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-evaldeclarationinstantiation
5 description: No variable collision with lexical binding in lower scope
6 info: |
7 [...]
8 5. If strict is false, then
9 [...]
10 features: [let]
11 ---*/
12
13 {
14 let x;
15 {
16 eval('"use strict"; var x;');
17 }
18 }
19
20 reportCompare(0, 0);