Skip to content

[Feature request] QuickJS bytecode compilation and loading support #7

@M0n7y5

Description

@M0n7y5

Platforms

Linux, dart, Windows, Web, macOS, iOS, Android

Description

QuickJS natively supports this via JS_EVAL_FLAG_COMPILE_ONLY + JS_WriteObject (compile to bytecode) and JS_ReadObject + JS_EvalFunction (load and execute bytecode). The quickjs.h header bundled with fjs already declares all of these, but they aren't exposed through the C interface layer or the Dart API.

Why

I'm building a plugin system where JS plugins run in sandboxed QuickJS engines via fjs. For a plugin marketplace with paid plugins, I need to distribute pre-compiled QuickJS bytecode instead of raw JS source - so the original source code never reaches the client device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions