X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;h=de60d0c2797777f81e285441567522256c1fa949;hb=9d4e2434725c2ee15785e27d662bb9465cb767f2;hp=3158851b59aeec50064ec738a6f60b847b219ff9;hpb=e4a8b8cbccc958639f4552d94c5a7c84d09f0ebc;p=org.ibex.core.git diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index 3158851..de60d0c 100644 --- a/src/org/ibex/js/JS.java +++ b/src/org/ibex/js/JS.java @@ -9,6 +9,8 @@ import java.util.*; /** The minimum set of functionality required for objects which are manipulated by JavaScript */ public class JS extends org.ibex.util.BalancedTree { + public static boolean checkAssertions = false; + public static final Object METHOD = new Object(); public final JS unclone() { return _unclone(); } public Enumeration keys() throws JSExn { return entries == null ? emptyEnumeration : entries.keys(); } @@ -130,7 +132,7 @@ public class JS extends org.ibex.util.BalancedTree { if((int)d == d) return Integer.toString((int)d); return o.toString(); } - throw new RuntimeException("can't coerce that!"); + throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "] to type String."); } // Instance Methods ////////////////////////////////////////////////////////////////////