Quoted symbols should be emitted as literal strings, not converted first to JS symbol...
authorDaniel Gackle <danielgackle@gmail.com>
Sat, 11 Apr 2009 22:48:02 +0000 (15:48 -0700)
committerDaniel Gackle <danielgackle@gmail.com>
Sat, 11 Apr 2009 22:48:02 +0000 (15:48 -0700)
src/printer.lisp
src/special-forms.lisp

index 778cd6b..39dcc09 100644 (file)
@@ -43,7 +43,7 @@ arguments, defines a printer for that form using the given body."
 
 (defmethod ps-print ((s symbol))
   (assert (keywordp s))
-  (ps-print (js-translate-symbol s)))
+  (ps-print (string-downcase s)))
 
 (defmethod ps-print ((compiled-form cons))
   (ps-print% (car compiled-form) (cdr compiled-form)))
index 8b6fe8a..478e892 100644 (file)
@@ -28,7 +28,7 @@
   (typecase x
     (cons (cons 'array (mapcar (lambda (x) `',x) x)))
     (null '(array))
-    (symbol (symbol-to-js-string x))
+    (symbol (string-downcase x))
     (number x)
     (string x)))