2 Commits 4da031bede ... 9d88df114b

Author SHA1 Message Date
  Herby Vojčík 9d88df114b brikz.startImage.run can return a promise 5 years ago
  Herby Vojčík 28328c3f82 Stupidity removal. 5 years ago
2 changed files with 5 additions and 3 deletions
  1. 4 2
      lang/base/boot.js
  2. 1 1
      lang/base/kernel-fundamentals.js

+ 4 - 2
lang/base/boot.js

@@ -70,8 +70,10 @@ define([
                         throw new Error("No one should be setting st.packages directly on initialized Amber.");
                     }
                 });
-                brikz.startImage.run();
-                initialized = true;
+                return Promise.resolve(brikz.startImage.run())
+                    .then(function () {
+                        initialized = true;
+                    });
             });
         };
     }

+ 1 - 1
lang/base/kernel-fundamentals.js

@@ -186,7 +186,7 @@ define(function () {
             var that = new SmalltalkMethod();
             var selector = spec.selector;
             that.selector = selector;
-            that.args = spec.args || {};
+            that.args = spec.args || [];
             that.protocol = spec.protocol;
             that.source = spec.source;
             that.messageSends = spec.messageSends || [];