projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30ee997
)
Migrate %JS-VSET and %JS-VREF
author
David Vázquez
<davazp@gmail.com>
Wed, 26 Jun 2013 23:58:18 +0000
(
01:58
+0200)
committer
David Vázquez
<davazp@gmail.com>
Wed, 26 Jun 2013 23:58:18 +0000
(
01:58
+0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
d299902
..
98d90c1
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-1361,10
+1361,10
@@
`(return ,(ls-compile nil))))
(define-compilation %js-vref (var)
- `(code "js_to_lisp(" ,var ")"))
+ `(call |js_to_lisp| ,(make-symbol var)))
(define-compilation %js-vset (var val)
- `(code "(" ,var " = lisp_to_js(" ,(ls-compile val) "))"))
+ `(= ,(make-symbol var) (call |lisp_to_js| ,(ls-compile val))))
(define-setf-expander %js-vref (var)
(let ((new-value (gensym)))