Scott optismization(TM).  Removed unnecessary and costly check from JsValueGlue.createJavaScriptObject().

Review by: bruce (desk check)


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1989 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java b/dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java
index b93250f..4d6f1e7 100644
--- a/dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java
+++ b/dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java
@@ -225,12 +225,6 @@
       CompilingClassLoader classLoader) {
     Throwable caught;
     try {
-      // checkThread();
-      if (!value.isJavaScriptObject()) {
-        throw new RuntimeException(
-            "Only Object type JavaScript objects can be made into JavaScriptObject");
-      }
-
       // See if there's already a wrapper object (assures identity comparison).
       Object jso = classLoader.getCachedJso(value.getJavaScriptObjectPointer());
       if (jso != null) {