Right here’s how:
A category of errors referred to as “early errors” is run in opposition to the supply to examine for errors like reserved phrases in invalid contexts, strict mode violations, and variable identify clashes earlier than working the precise parser. BinaryAST can spot these errors forward of time, earlier than runtime.
Parsing low-level sorts, like numbers from textual content, requires additional computation, and a few capabilities are ambiguous till totally parsed (both via backtracking or with intermediate node sorts). BinaryAST exposes the node sort upfront previous to parsing.
Above: Enabling Binary AST in Firefox.
Trying to get began with BinaryAST? You’re in luck — the BinaryAST Employee could be put in on any Cloudflare web site. After it’s configured, downloading the Firefox Nightly, heading to the about:config web page, and enabling unrestricted BinaryAST will get issues up and working.