Closed
Description
Something touched upon recently by @chqrlie: make it possible to build qjs without the JS parser and bytecode generator.
Such builds can only execute bytecode read with JS_ReadObject()
but you get a substantially smaller library in return. The parser makes up 15-25% of the library, depending on how you count.
Useful for embedded environments. Cuts down on attack surface.
A challenge is that JSON.parse()
uses bits and pieces of the parser.