JSExn testing of trap availability
[org.ibex.js.git] / src / org / ibex / js / Interpreter.java
index 02c35ed..611d2d8 100644 (file)
@@ -320,7 +320,8 @@ class Interpreter implements ByteCodes, Tokens, Pausable {
                 if (key == null) throw je("tried to get the null key from " + JSU.str(target));
                 if (target == null) throw je("tried to get property \"" + JSU.str(key) + "\" from the null object");
                 
-                JS.Trap t = target.getTrap(key);
+                JS.Trap t = null;
+                try { t = target.getTrap(key); } catch (JSExn e) {}
                 if(t != null) t = t.read();
                 
                 if(t == null && target instanceof JS.Clone) {