Browse Source

Check that there isn't tight coupling to JS hierarchy.

Herbert Vojčík 7 years ago
parent
commit
2ea8f3ecfd
1 changed files with 4 additions and 2 deletions
  1. 4 2
      support/kernel-language.js

+ 4 - 2
support/kernel-language.js

@@ -193,7 +193,8 @@ define(['./compatibility'], function () {
 
             that.superclass = setSuperClass;
             that.fn = spec.fn || inherits(function () {
-                }, spec.superclass.fn);
+                }, inherits(function () {
+                }, spec.superclass.fn));
             that.iVarNames = spec.iVarNames || [];
 
             that.className = spec.className;
@@ -205,7 +206,8 @@ define(['./compatibility'], function () {
         }
 
         function metaclass (spec) {
-            var that = new SmalltalkMetaclass();
+            var that = new (inherits(function () {
+            }, SmalltalkMetaclass))();
 
             that.superclass = spec.superclass.klass;
             that.fn = inherits(function () {