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:
committed by
Evgeny Gavrin
parent
6573ffd632
commit
984e269db6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user