Function declaration outside of blocks in direct eval must be ES5.1 compatible. (#3690)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -152,3 +152,10 @@ function f6() {
|
||||
(((((e)))("assert(p1 === 0)")));
|
||||
}
|
||||
f6();
|
||||
|
||||
y = 1;
|
||||
function f7() {
|
||||
function x() { return y; }
|
||||
eval("assert(x()() === 5); function y() { return 5 } assert(x()() === 5)");
|
||||
}
|
||||
f7()
|
||||
|
||||
Reference in New Issue
Block a user