Browse Source

send(...jsSelector...) => send2(...stSelector...)

Herbert Vojčík 7 years ago
parent
commit
7a36f5bc99
3 changed files with 6 additions and 6 deletions
  1. 2 2
      src/Kernel-Objects.js
  2. 1 1
      src/Kernel-Objects.st
  3. 3 3
      support/boot.js

+ 2 - 2
src/Kernel-Objects.js

@@ -508,7 +508,7 @@ var self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-return $core.send(self, aString._asJavaScriptMethodName(), aCollection);
+return $core.send2(self, aString, aCollection);
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"perform:withArguments:",{aString:aString,aCollection:aCollection},$globals.ProtoObject)});
@@ -516,7 +516,7 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aString", "aCollection"],
-source: "perform: aString withArguments: aCollection\x0a\x09<return $core.send(self, aString._asJavaScriptMethodName(), aCollection)>",
+source: "perform: aString withArguments: aCollection\x0a\x09<return $core.send2(self, aString, aCollection)>",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: []

+ 1 - 1
src/Kernel-Objects.st

@@ -99,7 +99,7 @@ perform: aString
 !
 
 perform: aString withArguments: aCollection
-	<return $core.send(self, aString._asJavaScriptMethodName(), aCollection)>
+	<return $core.send2(self, aString, aCollection)>
 ! !
 
 !ProtoObject methodsFor: 'printing'!

+ 3 - 3
support/boot.js

@@ -965,8 +965,8 @@ define(['require', './brikz.umd', './compatibility'], function (require, Brikz)
         /* Handles unhandled errors during message sends */
         // simply send the message and handle #dnu:
 
-        st.send = function (receiver, jsSelector, args, klass) {
-            var method;
+        st.send2 = function (receiver, selector, args, klass) {
+            var method, jsSelector = st.st2js(selector);
             if (receiver == null) {
                 receiver = nil;
             }
@@ -974,7 +974,7 @@ define(['require', './brikz.umd', './compatibility'], function (require, Brikz)
             if (method) {
                 return method.apply(receiver, args || []);
             } else {
-                return messageNotUnderstood(receiver, st.js2st(jsSelector), args);
+                return messageNotUnderstood(receiver, selector, args);
             }
         };