quickjs: support multiple quickjs versions#36
Merged
ammarahm-ed merged 1 commit intomainfrom Nov 26, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for multiple QuickJS versions by incorporating files from the QuickJS source repository. The changes include benchmark tests, test harnesses, configuration files, and core library components necessary for testing and building QuickJS across different versions.
Key Changes:
- Added comprehensive test files including microbenchmarks, test262 configuration, and test harness utilities
- Added fuzzing infrastructure for testing regexp, eval, and compile functionality
- Added build and release scripts for cross-platform support
Reviewed changes
Copilot reviewed 55 out of 114 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test-app/runtime/src/main/cpp/napi/quickjs/source/tests/microbench.js | JavaScript microbenchmark suite for performance testing |
| test-app/runtime/src/main/cpp/napi/quickjs/source/tests/fixture_cyclic_import.js | Test fixture for cyclic module imports |
| test-app/runtime/src/main/cpp/napi/quickjs/source/tests/bjson.c | Binary JSON module implementation for testing |
| test-app/runtime/src/main/cpp/napi/quickjs/source/tests/assert.js | Assertion utilities for test suites |
| test-app/runtime/src/main/cpp/napi/quickjs/source/test262o.conf | Test262 ES5 configuration file |
| test-app/runtime/src/main/cpp/napi/quickjs/source/test262.conf | Test262 ES6 configuration file |
| test-app/runtime/src/main/cpp/napi/quickjs/source/run-test262.c | Test262 test runner implementation |
| test-app/runtime/src/main/cpp/napi/quickjs/source/repl.js | REPL implementation with colorization |
| test-app/runtime/src/main/cpp/napi/quickjs/source/release.sh | Release script for building binaries |
| test-app/runtime/src/main/cpp/napi/quickjs/source/readme.txt | Documentation pointer |
| test-app/runtime/src/main/cpp/napi/quickjs/source/readme-cosmo.txt | Cosmopolitan binary documentation |
| test-app/runtime/src/main/cpp/napi/quickjs/source/quickjs-opcode.h | Bytecode opcode definitions |
| test-app/runtime/src/main/cpp/napi/quickjs/source/quickjs-libc.h | QuickJS C library header |
| test-app/runtime/src/main/cpp/napi/quickjs/source/quickjs-atom.h | Atom definitions for string interning |
| test-app/runtime/src/main/cpp/napi/quickjs/source/qjsc.c | QuickJS compiler implementation |
| test-app/runtime/src/main/cpp/napi/quickjs/source/list.h | Linked list utilities |
| test-app/runtime/src/main/cpp/napi/quickjs/source/libunicode.h | Unicode support library header |
| test-app/runtime/src/main/cpp/napi/quickjs/source/libregexp.h | Regular expression library header |
| test-app/runtime/src/main/cpp/napi/quickjs/source/libregexp-opcode.h | Regexp bytecode opcodes |
| test-app/runtime/src/main/cpp/napi/quickjs/source/fuzz/generate_dict.js | Fuzzer dictionary generator |
| test-app/runtime/src/main/cpp/napi/quickjs/source/fuzz/fuzz_regexp.c | Regexp fuzzing target |
| test-app/runtime/src/main/cpp/napi/quickjs/source/fuzz/fuzz_eval.c | Eval fuzzing target |
| test-app/runtime/src/main/cpp/napi/quickjs/source/fuzz/fuzz_compile.c | Compile fuzzing target |
| test-app/runtime/src/main/cpp/napi/quickjs/source/fuzz/fuzz_common.h | Common fuzzing utilities |
| test-app/runtime/src/main/cpp/napi/quickjs/source/examples/test_fib.js | Example fibonacci test |
| test-app/runtime/src/main/cpp/napi/quickjs/source/examples/message.json | Example JSON data |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.