aboutsummaryrefslogtreecommitdiffstats
path: root/src/annex-b-fns/eval-func-existing-block-fn-no-init.case
blob: dbd8887b8048ea9814a5181d089e3a0b8d233c2c (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: eval-func
info: |
    B.3.3.3 Changes to EvalDeclarationInstantiation

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

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

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