Fix direct call to eval from strict mode code.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-06-28 22:26:50 +03:00
committed by Evgeny Gavrin
parent 6573ffd632
commit 984e269db6
4 changed files with 28 additions and 5 deletions
+10
View File
@@ -51,6 +51,16 @@ function f2 (global)
assert (v2 === 'local value');
assert (typeof (global.v2) === 'undefined');
assert (r === undefined);
try
{
eval ('arguments = 1;');
assert (false);
}
catch (e)
{
assert (e instanceof SyntaxError);
}
}
f2 (this);