X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;h=de60d0c2797777f81e285441567522256c1fa949;hb=b5f5696f48099cede3bb5f2331b406f6ded1fe4a;hp=378e1252b64ab5f890dcb08da6e25a926600b0b7;hpb=29b0b0be4eff6d56d54e89225fc81142b6c2a1de;p=org.ibex.core.git diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index 378e125..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 "+o+" [" + o.getClass().getName() + "]"); + throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "] to type String."); } // Instance Methods ////////////////////////////////////////////////////////////////////