Fix for propagating arguments reference from nested blocks. (#3309)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Dániel Bátyai
parent
55c7590767
commit
b4b55a67a2
@@ -129,3 +129,17 @@ fn_expr (1);
|
||||
(function () {
|
||||
var a = [arguments];
|
||||
})();
|
||||
|
||||
function nested_args()
|
||||
{
|
||||
var a;
|
||||
for (var i = 0; i < 1; i++)
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
a = arguments[i];
|
||||
}
|
||||
}
|
||||
assert(a === 3);
|
||||
}
|
||||
nested_args(3);
|
||||
|
||||
Reference in New Issue
Block a user