js-on-sx: js-is-space? covers full ES WhiteSpace + LineTerminator set
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s

This commit is contained in:
2026-05-08 23:52:44 +00:00
parent 20997d3360
commit c45a2b34a0
2 changed files with 22 additions and 1 deletions

View File

@@ -1553,7 +1553,26 @@
(define
js-is-space?
(fn (c) (or (= c " ") (= c "\t") (= c "\n") (= c "\r"))))
(fn
(c)
(let
((cc (char-code c)))
(or
(= cc 9)
(= cc 10)
(= cc 11)
(= cc 12)
(= cc 13)
(= cc 32)
(= cc 160)
(= cc 5760)
(and (>= cc 8192) (<= cc 8202))
(= cc 8232)
(= cc 8233)
(= cc 8239)
(= cc 8287)
(= cc 12288)
(= cc 65279)))))
(define
js-parse-decimal