X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;h=7a786230ecb502b5ee71f40439675a0bd36381d6;hb=b857cf06b4b1fe9a5f6200728cc1e5f94903b05a;hp=9aa5606455c3e24c20597359e6769ef766a30d41;hpb=b4cbe7980419f21ef890b407e6d7e6e8026ca71e;p=org.ibex.core.git diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index 9aa5606..7a78623 100644 --- a/src/org/ibex/js/JS.java +++ b/src/org/ibex/js/JS.java @@ -2,7 +2,6 @@ package org.ibex.js; import org.ibex.util.*; -import org.ibex.*; import java.io.*; import java.util.*; @@ -69,7 +68,7 @@ public class JS extends org.ibex.util.BalancedTree { return new JS.UnpauseCallback(i); } - public static class UnpauseCallback implements Scheduler.Task { + public static class UnpauseCallback implements Task { Interpreter i; UnpauseCallback(Interpreter i) { this.i = i; } public void perform() throws JSExn { unpause(null); } @@ -132,7 +131,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 ////////////////////////////////////////////////////////////////////