Browse Source

globals.js added, used in _st.js

Herbert Vojčík 10 years ago
parent
commit
fe671629b9
2 changed files with 5 additions and 2 deletions
  1. 2 2
      support/_st.js
  2. 3 0
      support/globals.js

+ 2 - 2
support/_st.js

@@ -9,10 +9,10 @@
  * otherwise unchanged
  */
 
-define("amber_vm/_st", ["./smalltalk", "./nil"], function (smalltalk, nil) {
+define("amber_vm/_st", ["./globals", "./nil"], function (globals, nil) {
     return function (o) {
         if (o == null) { return nil; }
         if (o.klass) { return o; }
-        return smalltalk.JSObjectProxy._on_(o);
+        return globals.JSObjectProxy._on_(o);
     };
 });

+ 3 - 0
support/globals.js

@@ -0,0 +1,3 @@
+define("amber_vm/globals", ["./boot"], function (boot) {
+    return boot.globals;
+});