From 3adff821b812865f19a2c3d0214ca5d3deca3e06 Mon Sep 17 00:00:00 2001 From: crawshaw Date: Sat, 8 Jan 2005 10:03:01 +0000 Subject: [PATCH] JSExn testing of trap availability darcs-hash:20050108100301-2eb37-2cb0eacc8498d146e535239ac1c11fab5303cffa.gz --- src/org/ibex/js/Interpreter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/ibex/js/Interpreter.java b/src/org/ibex/js/Interpreter.java index 02c35ed..611d2d8 100644 --- a/src/org/ibex/js/Interpreter.java +++ b/src/org/ibex/js/Interpreter.java @@ -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) { -- 1.7.10.4