aboutsummaryrefslogtreecommitdiffstats
path: root/src/annex-b-fns/eval-global-existing-var-no-init.case
blob: 08b09bf3191db46f42a710d006f3ea121ecd5ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Existing variable binding is not modified
template: eval-global
info: |
    B.3.3.3 Changes to EvalDeclarationInstantiation

    [...]
    a. If declaredFunctionOrVarNames does not contain F, then
    [...]
---*/

//- before
var f = 123;
assert.sameValue(f, 123);