Catch exception if indirect eval calls are not allowed in the engine
git-svn-id: svn://10.0.0.236/trunk@171962 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
01961ddc25
commit
2f8521387d
@ -50,7 +50,14 @@ function f1()
|
||||
eval.call(o, "var a = 'vodka'"); // <- CRASH !!!
|
||||
}
|
||||
|
||||
f1();
|
||||
// Rhino does not allow indirect eval calls
|
||||
try
|
||||
{
|
||||
f1();
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
|
||||
actual = 'No Crash';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user