projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
178cdd0
)
Migrate JS-EVAL
author
David Vázquez
<davazp@gmail.com>
Mon, 24 Jun 2013 11:18:17 +0000
(13:18 +0200)
committer
David Vázquez
<davazp@gmail.com>
Mon, 24 Jun 2013 11:18:17 +0000
(13:18 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
d8e9b6d
..
e9ee752
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-1224,10
+1224,10
@@
(define-builtin js-eval (string)
(if *multiple-value-p*
(define-builtin js-eval (string)
(if *multiple-value-p*
- (js!selfcall
- "var v = globalEval(xstring(" string "));"
- "return values.apply(this, forcemv(v));" )
- `(code "globalEval(xstring(" ,string "))")))
+ (js!selfcall*
+ `(var (v (call |globalEval| (call |xstring| ,string))))
+ `(return (call (get |values| "apply") this (call |forcemv| v))))
+ `(call |globalEval| (call |xstring| ,string))))
(define-builtin %throw (string)
(js!selfcall* `(throw ,string)))
(define-builtin %throw (string)
(js!selfcall* `(throw ,string)))