projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9975f8e
)
Migrate EQ, CHAR-UPCASE and CHAR-DOWNCASE
author
David Vázquez
<davazp@gmail.com>
Sun, 23 Jun 2013 19:34:17 +0000
(21:34 +0200)
committer
David Vázquez
<davazp@gmail.com>
Sun, 23 Jun 2013 19:42:12 +0000
(21:42 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
1d9489b
..
57a7e79
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-1160,7
+1160,7
@@
`(call |make_lisp_string| (call (get ,x "toString"))))
(define-builtin eq (x y)
`(call |make_lisp_string| (call (get ,x "toString"))))
(define-builtin eq (x y)
- (js!bool `(code "(" ,x " === " ,y ")")))
+ (js!bool `(=== ,x ,y)))
(define-builtin char-code (x)
(type-check (("x" "string" x))
(define-builtin char-code (x)
(type-check (("x" "string" x))
@@
-1177,10
+1177,10
@@
"return (typeof(" x ") == \"string\") && (x.length == 1 || x.length == 2);")))
(define-builtin char-upcase (x)
"return (typeof(" x ") == \"string\") && (x.length == 1 || x.length == 2);")))
(define-builtin char-upcase (x)
- `(code "safe_char_upcase(" ,x ")"))
+ `(call |safe_char_upcase| ,x))
(define-builtin char-downcase (x)
(define-builtin char-downcase (x)
- `(code "safe_char_downcase(" ,x ")"))
+ `(call |safe_char_downcase| ,x))
(define-builtin stringp (x)
(js!bool
(define-builtin stringp (x)
(js!bool