Skip to content

Parser-less build mode #976

Closed
Closed
@bnoordhuis

Description

@bnoordhuis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions