Ver Fonte

fixed exporter for not escaped selector strings

Nicolas Petton há 12 anos atrás
pai
commit
7d25a4bc31
4 ficheiros alterados com 190 adições e 192 exclusões
  1. 0 1
      js/Compiler.deploy.js
  2. 20 21
      js/Compiler.js
  3. 168 168
      js/Kernel.js
  4. 2 2
      st/Compiler.st

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 1
js/Compiler.deploy.js


Diff do ficheiro suprimidas por serem muito extensas
+ 20 - 21
js/Compiler.js


Diff do ficheiro suprimidas por serem muito extensas
+ 168 - 168
js/Kernel.js


+ 2 - 2
st/Compiler.st

@@ -150,9 +150,9 @@ classNameFor: aClass
 exportMethod: aMethod of: aClass on: aStream
 	aStream 
 		nextPutAll: 'smalltalk.addMethod(';lf;
-		nextPutAll: '''', aMethod selector asSelector, ''',';lf;
+		nextPutAll: 'unescape(''', aMethod selector asSelector escaped, '''),';lf;
 		nextPutAll: 'smalltalk.method({';lf;
-		nextPutAll: 'selector: ''', aMethod selector, ''',';lf;
+		nextPutAll: 'selector: unescape(''', aMethod selector escaped, '''),';lf;
 		nextPutAll: 'category: ''', aMethod category, ''',';lf;
 		nextPutAll: 'fn: ', aMethod fn compiledSource, ',';lf;
 		nextPutAll: 'args: ', aMethod arguments asJavascript, ','; lf;

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff