QuickJS Documentation

repository·master·Indexed 27 days ago

https://github.com/bellard/quickjs

A small, embeddable JavaScript engine. This version provides cross-platform executables for Linux, Mac, Windows, and various BSDs across ARM64 and x86_64 architectures, including instructions for libFuzzer builds, running fuzzing targets, and optimizing startup time using the --assimilate option.

Tokens
334
Snippets
2
Records
5
Agent score
45%

What's inside QuickJS

  1. Run QuickJS fuzzing targets

    master
    The libFuzzer build produces three executable binaries: fuzz_eval, fuzz_compile, and fuzz_regexp. These can be executed directly, with a corpus directory, or with a dictionary file. They also support any arbitrary CLI arguments provided by libFuzzer.
  2. Troubleshoot Linux execution errors (binfmt_misc)

    master

    If you encounter errors when running QuickJS executables on Linux, it may be due to the binfmt_misc module automatically invoking wine for Windows executables. You can disable this by removing the interpreters using the following commands:

    sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/cli'     # remove Ubuntu's MZ interpreter
    sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/status'  # remove ALL binfmt_misc entries