projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6ad5cd
)
Migrate DUMP-ARRAY
author
David Vázquez
<davazp@gmail.com>
Sun, 23 Jun 2013 13:32:38 +0000
(15:32 +0200)
committer
David Vázquez
<davazp@gmail.com>
Sun, 23 Jun 2013 13:32:38 +0000
(15:32 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
2bff550
..
55aae97
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-521,10
+521,11
@@
(defun dump-array (array)
(let ((elements (vector-to-list array)))
(defun dump-array (array)
(let ((elements (vector-to-list array)))
- `(code "[" ,(join (mapcar #'literal elements) ", ") "]")))
+ (list-to-vector (mapcar (lambda (x) `(code ,(literal x)))
+ elements))))
(defun dump-string (string)
(defun dump-string (string)
- `(code "make_lisp_string(" ,(js-escape-string string) ")"))
+ `(call |make_lisp_string| ,string))
(defun literal (sexp &optional recursive)
(cond
(defun literal (sexp &optional recursive)
(cond