Browse Source

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

Boolean fix bootjs
Nicolas Petton 12 years ago
parent
commit
544958ccf1
1 changed files with 4 additions and 4 deletions
  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();
         }
     }
 };