aboutsummaryrefslogtreecommitdiffstats
path: root/src/annex-b-fns/func-existing-block-fn-no-init.case
blob: c0e65f6ba8b12202e152be2264d45a99ac76c8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Does not re-initialize binding created by similar forms
template: func
info: |
    B.3.3.1 Changes to FunctionDeclarationInstantiation

    [...]
    2. If instantiatedVarNames does not contain F, then
    [...]
---*/

//- setup
var init;
//- before
init = f;

{
  function f() {}
}
//- teardown
assert.sameValue(init, undefined);