ソースを参照

Temporary fix of #1062.

Herbert Vojčík 9 年 前
コミット
91bf127b74
2 ファイル変更3 行追加1 行削除
  1. 2 1
      src/Kernel-Infrastructure.js
  2. 1 0
      src/Kernel-Infrastructure.st

+ 2 - 1
src/Kernel-Infrastructure.js

@@ -3620,11 +3620,12 @@ fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 
+    if (self[0] === '_') return ''; // TODO revert when #1062 root cause fixed
 	var colonPosition = self.indexOf(':');
 	return colonPosition === -1 ? self : self.slice(0, colonPosition);;
 return self}, function($ctx1) {$ctx1.fill(self,"asJavaScriptSelector",{},globals.String)})},
 args: [],
-source: "asJavaScriptSelector\x0a<\x0a\x09var colonPosition = self.indexOf(':');\x0a\x09return colonPosition === -1 ? self : self.slice(0, colonPosition);\x0a>",
+source: "asJavaScriptSelector\x0a<\x0a    if (self[0] === '_') return ''; // TODO revert when #1062 root cause fixed\x0a\x09var colonPosition = self.indexOf(':');\x0a\x09return colonPosition === -1 ? self : self.slice(0, colonPosition);\x0a>",
 messageSends: [],
 referencedClasses: []
 }),

+ 1 - 0
src/Kernel-Infrastructure.st

@@ -1375,6 +1375,7 @@ do: aBlock displayingProgress: aString
 
 asJavaScriptSelector
 <
+    if (self[0] === '_') return ''; // TODO revert when #1062 root cause fixed
 	var colonPosition = self.indexOf(':');
 	return colonPosition === -1 ? self : self.slice(0, colonPosition);
 >