1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:02:26 +01:00

move null return statement into catch block of Javascript#eval

This commit is contained in:
Doug Kearns
2008-10-07 10:52:12 +00:00
parent 2a1a15e601
commit 73a2d510a7

View File

@@ -170,9 +170,11 @@ liberator.Completion = function () //{{{
// liberator.dump("eval(" + liberator.util.escapeString(arg) + ")");
return window.eval(arg);
}
catch(e) {}
catch (e)
{
return null;
}
}
/* Get an element from the stack. If @n is negative,
* count from the top of the stack, otherwise, the bottom.