mirror of https://github.com/tc39/test262.git
21 lines
458 B
Plaintext
21 lines
458 B
Plaintext
|
// 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-func
|
||
|
info: |
|
||
|
B.3.3.3 Changes to EvalDeclarationInstantiation
|
||
|
|
||
|
[...]
|
||
|
a. If declaredFunctionOrVarNames does not contain F, then
|
||
|
[...]
|
||
|
---*/
|
||
|
|
||
|
//- setup
|
||
|
var init;
|
||
|
//- before
|
||
|
var f = 123;
|
||
|
init = f;
|
||
|
//- teardown
|
||
|
assert.sameValue(init, 123);
|