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:
bob%bclary.com 2005-04-11 03:36:25 +00:00
parent 01961ddc25
commit 2f8521387d

View File

@ -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';