Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that workers in fuzzers can create their own context #334

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renatahodovan
Copy link
Contributor

Inspired by qjs, a new helper method was added to create the JS context, that can be reused to create context in workers, too.

Inspired by qjs, a new helper method was added to create the JS
context, that can be reused to create context in workers, too.
@renatahodovan
Copy link
Contributor Author

@saghul Thanks for your approval! Could someone land it please?

@renatahodovan
Copy link
Contributor Author

@bellard Could you please take a look?

zenHeart pushed a commit to zenHeart/quickjs that referenced this pull request Mar 25, 2025
Translate IC opcodes to their non-IC variants before writing them out.
Before this commit they were not byte-swapped properly, breaking the
ability to load serialized bytecode containing ICs on systems with
different endianness. Inline caches are recomputed as needed now.

A pleasing side effect of this change is that serialized bytecode is,
on average, a little smaller because fewer atoms are duplicated now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants