From 73a2d510a720481594b3408e096b0d7a8f3d5ec0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 7 Oct 2008 10:52:12 +0000 Subject: [PATCH] move null return statement into catch block of Javascript#eval --- content/completion.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/completion.js b/content/completion.js index 5b4cfe73..8de03f77 100644 --- a/content/completion.js +++ b/content/completion.js @@ -170,8 +170,10 @@ liberator.Completion = function () //{{{ // liberator.dump("eval(" + liberator.util.escapeString(arg) + ")"); return window.eval(arg); } - catch(e) {} - return null; + catch (e) + { + return null; + } } /* Get an element from the stack. If @n is negative,