Explorar o código

Fixed previous commit

Nicolas Petton %!s(int64=13) %!d(string=hai) anos
pai
achega
47fc67fc32
Modificáronse 3 ficheiros con 2 adicións e 5 borrados
  1. 0 0
      js/Compiler.deploy.js
  2. 0 0
      js/Compiler.js
  3. 2 5
      st/Compiler.st

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
js/Compiler.deploy.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
js/Compiler.js


+ 2 - 5
st/Compiler.st

@@ -961,11 +961,8 @@ visitVariableNode: aNode
 		ifTrue: [stream nextPutAll: 'self[''@', aNode value, ''']']
 		ifFalse: [
 			(self knownVariables includes: aNode value) 
-                  		ifFalse: [
-					unknownVariables add: aNode value.
-					stream nextPutAll: '(typeof ', aNode value, ' == ''undefined'' ? nil : ', aNode value, ')']
-                		ifTrue: [
-                                	stream nextPutAll: aNode value]]
+                  		ifFalse: [unknownVariables add: aNode value].
+                	stream nextPutAll: '(', aNode value, ' || nil)']
 !
 
 visitJSStatementNode: aNode

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio