projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4efabd2
)
Migrate LABELS
author
David Vázquez
<davazp@gmail.com>
Sat, 29 Jun 2013 16:38:30 +0000
(18:38 +0200)
committer
David Vázquez
<davazp@gmail.com>
Sat, 29 Jun 2013 16:38:30 +0000
(18:38 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
b590962
..
af7acb6
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-615,13
+615,13
@@
(extend-lexenv (mapcar #'make-function-binding fnames)
*environment*
'function)))
(extend-lexenv (mapcar #'make-function-binding fnames)
*environment*
'function)))
- (js!selfcall
- `(code ,@(mapcar (lambda (func)
- `(code "var " ,(translate-function (car func))
- " = " ,(compile-lambda (cadr func)
- `((block ,(car func) ,@(cddr func))))
- ";" ))
- definitions))
+ (js!selfcall*
+ `(progn
+ ,@(mapcar (lambda (func)
+ `(var (,(make-symbol (translate-function (car func)))
+ ,(compile-lambda (cadr func)
+ `((block ,(car func) ,@(cddr func)))))))
+ definitions))
(ls-compile-block body t))))
(ls-compile-block body t))))