Skip to content

chore: remove the unmaintained pure-JS lexer port#204

Open
BridgeAR wants to merge 1 commit into
guybedford:mainfrom
BridgeAR:BridgeAR/2026-06-22-remove-js-port
Open

chore: remove the unmaintained pure-JS lexer port#204
BridgeAR wants to merge 1 commit into
guybedford:mainfrom
BridgeAR:BridgeAR/2026-06-22-remove-js-port

Conversation

@BridgeAR

Copy link
Copy Markdown
Contributor

Summary

Removes the hand-written pure-JS lexer.js - a manual reimplementation of the WebAssembly lexer that had to be kept in sync by hand. It is unreachable through the package exports (. -> wasm, ./js -> asm.js) and is not run by chomp test, so it could drift silently with no consumer. The asm.js build already covers the no-WebAssembly case.

The unit harness now defaults to the wasm build, and the if (!js) skips become unconditional - they already ran under wasm and asm.

Test plan

  • chomp test (wasm + asm): 132 passing on both.

lexer.js reimplemented the WebAssembly lexer in hand-written JS kept in sync by
hand. It is unreachable through the package `exports` (only `.` and `./js` are
exposed - the wasm and asm.js builds) and `chomp test` never ran it, so it could
drift silently. The asm.js build already covers the no-WebAssembly case.

The unit harness defaults to the wasm build; the `if (!js)` skips run
unconditionally now, as they already did under wasm and asm.
@BridgeAR BridgeAR marked this pull request as ready for review June 22, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant