Explorar el Código

Merge pull request #278 from herby/boolean-fix-bootjs

Boolean fix bootjs
Nicolas Petton hace 12 años
padre
commit
544958ccf1
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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();
         }
     }
 };