Files
rose-ash/lib/js/lexer.sx
giles 081f934cad
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m3s
js-on-sx: lexer handles \uXXXX and \xXX string escapes
read-string fell through to the literal-char branch for \u and \x,
silently stripping the backslash ("A".length returned 5 instead
of 1). Added js-hex-value helper and two cond clauses that read the
hex digits via js-peek + js-hex-digit?, compute the code point, and
emit it via char-from-code. Invalid escapes fall through to the
literal-char behaviour. built-ins/String (with --restart-every 1):
65/99 → 68/99. conformance.sh: 148/148.
2026-05-07 12:02:30 +00:00

25 KiB