projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ada11
)
Migrate toplevel code emitted as result of literals
author
David Vázquez
<davazp@gmail.com>
Fri, 5 Jul 2013 15:19:16 +0000
(17:19 +0200)
committer
David Vázquez
<davazp@gmail.com>
Fri, 5 Jul 2013 15:19:16 +0000
(17:19 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
79bf250
..
931e9a2
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-545,9
+545,9
@@
dumped
(let ((jsvar (genlit)))
(push (cons sexp jsvar) *literal-table*)
- (toplevel-compilation `(code "var " ,jsvar " = " ,dumped))
+ (toplevel-compilation `(var (,(make-symbol jsvar) ,dumped)))
(when (keywordp sexp)
- (toplevel-compilation `(code ,jsvar ".value = " ,jsvar)))
+ (toplevel-compilation `(= ,(get (make-symbol jsvar) "value") ,(make-symbol jsvar))))
jsvar)))))))