| 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 |
path: annexB/language/eval-code/direct/func-block-decl- |
| 5 |
name: Block statement in eval code containing a function declaration |
| 6 |
esid: sec-web-compat-evaldeclarationinstantiation |
| 7 |
es6id: B.3.3.3 |
| 8 |
flags: [noStrict] |
| 9 |
---*/ |
| 10 |
|
| 11 |
(function(/*{ params }*/) { |
| 12 |
eval( |
| 13 |
'/*{ before }*/{ function f() { /*{ body }*/ } }/*{ after }*/' |
| 14 |
); |
| 15 |
}(/*{ args }*/)); |