"return (typeof(" x ") == \"string\") && x.length == 1;")))
(define-builtin char-to-string (x)
- (type-check (("x" "number" x))
- "String.fromCharCode(x)"))
+ (type-check (("x" "string" x))
+ "(x)"))
(define-builtin stringp (x)
(js!bool (code "(typeof(" x ") == \"string\")")))
(#\newline "newline")
(#\space "space")
(otherwise (string form)))))
- ((stringp form) (concat "\"" (escape-string form) "\""))
+ ((stringp form) (if *print-escape*
+ (concat "\"" (escape-string form) "\"")
+ form))
((functionp form)
(let ((name (oget form "fname")))
(if name