Przeglądaj źródła

JS reserved word `boolean` clash in boot.js

Herby Vojčík 12 lat temu
rodzic
commit
959662bc10
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      js/boot.js

+ 4 - 4
js/boot.js

@@ -568,11 +568,11 @@ function Smalltalk(){
 	};
 
     /* Boolean assertion */
-    st.assert = function(boolean) {
-        if ((undefined !== boolean) && (boolean.klass === smalltalk.Boolean)) {
-            return boolean;
+    st.assert = function(shouldBeBoolean) {
+        if ((undefined !== shouldBeBoolean) && (shouldBeBoolean.klass === smalltalk.Boolean)) {
+            return shouldBeBoolean;
         } else {
-            smalltalk.NonBooleanReceiver._new()._object_(boolean)._signal();
+            smalltalk.NonBooleanReceiver._new()._object_(shouldBeBoolean)._signal();
         }
     }
 };