From 05ee41a100aa5cf0b6f68f62c88d7e9050f70673 Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Sun, 26 Jun 2005 21:32:42 +0000 Subject: [PATCH] Fix for bug 290034: JavaScriptException should not be wrapped inside Context.throwAsScriptRuntimeEx --- js/rhino/src/org/mozilla/javascript/Context.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/rhino/src/org/mozilla/javascript/Context.java b/js/rhino/src/org/mozilla/javascript/Context.java index 2c7c78aaf8b7..94b4538842a5 100644 --- a/js/rhino/src/org/mozilla/javascript/Context.java +++ b/js/rhino/src/org/mozilla/javascript/Context.java @@ -1687,11 +1687,8 @@ public class Context if (e instanceof Error) { throw (Error)e; } - if (e instanceof EvaluatorException) { - throw (EvaluatorException)e; - } - if (e instanceof EcmaError) { - throw (EcmaError)e; + if (e instanceof RhinoException) { + throw (RhinoException)e; } throw new WrappedException(e); }