Print unknown objects as #<javascript object>
authorDavid Vázquez <davazp@gmail.com>
Mon, 22 Apr 2013 20:22:54 +0000 (21:22 +0100)
committerDavid Vázquez <davazp@gmail.com>
Mon, 22 Apr 2013 20:22:54 +0000 (21:22 +0100)
ecmalisp.lisp

index 5e37e4a..fbbdbb1 100644 (file)
                        "()"
                        (prin1-to-string (vector-to-list form)))))
       ((packagep form)
-       (concat "#<PACKAGE " (package-name form) ">"))))
+       (concat "#<PACKAGE " (package-name form) ">"))
+      (t
+       (concat "#<javascript object>"))))
 
   (defun write-line (x)
     (write-string x)