Browse Source

More proactive aliasing of CharacterArray.

Now code using it during load
(eg. defining extenstion methods)
can be loaded.
Herby Vojčík 5 years ago
parent
commit
8b59bcb4ad
2 changed files with 7 additions and 2 deletions
  1. 7 0
      lang/base/boot.js
  2. 0 2
      lang/base/kernel-runtime.js

+ 7 - 0
lang/base/boot.js

@@ -107,6 +107,13 @@ define([
 
     brikz.rebuild();
 
+    // TODO deprecated, remove
+    Object.defineProperty(brikz.smalltalkGlobals.globals, "CharacterArray", {
+        get: function () {
+            return this.String;
+        }
+    });
+
     return {
         api: api,
         nilAsReceiver: brikz.nil.nilAsReceiver,

+ 0 - 2
lang/base/kernel-runtime.js

@@ -158,8 +158,6 @@ define(function () {
         this.__init__ = function () {
             st.alias(globals.Array, "OrderedCollection");
             st.alias(globals.Date, "Time");
-            // TODO deprecated, remove
-            st.alias(globals.String, "CharacterArray");
         }
     }