Fixes broken closure code path in 5cc145f2133297362a1f8628aa6ebd72fe319306 Change-Id: I5a12573041ffe402766ac39f0cbc828b782222c3
diff --git a/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/JavaClassHierarchySetupUtil.java b/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/JavaClassHierarchySetupUtil.java index 1c149ed..cac5a65 100644 --- a/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/JavaClassHierarchySetupUtil.java +++ b/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/JavaClassHierarchySetupUtil.java
@@ -87,14 +87,11 @@ */ private static native JavaScriptObject createSubclassPrototype( JavaScriptObject superTypeIdOrPrototype) /*-{ - var superPrototype; - if (typeof superTypeIdOrPrototype != 'number') { - // Either it is null or the prototype of the super type. - superPrototype = (superTypeIdOrPrototype && superTypeIdOrPrototype.prototype) || {}; - } else { + var superPrototype = superTypeIdOrPrototype && superTypeIdOrPrototype.prototype; + if (!superPrototype) { + // If it is not a prototype, then it should be a type id. superPrototype = @JavaClassHierarchySetupUtil::prototypesByTypeId[superTypeIdOrPrototype]; } - return @JavaClassHierarchySetupUtil::portableObjCreate(*)(superPrototype); }-*/;