Skip to content

Conversation

@giuliano-macedo
Copy link
Contributor

@giuliano-macedo giuliano-macedo commented Mar 15, 2025

Added WriteOptions struct that represents all flags that can be passed to qjs::JS_WriteObject, this is useful specially for the flags JS_WRITE_OBJ_STRIP_SOURCE and JS_WRITE_OBJ_STRIP_DEBUG which when enabled decreases the bytecode size significantly (see quickjs-ng/quickjs#388), while adding it I've noticed two other flags (JS_WRITE_OBJ_REFERENCE and JS_WRITE_OBJ_SAB) that can be passed to it, so I've added as well (ref).

@giuliano-macedo giuliano-macedo force-pushed the added-module-write-options branch from 3336b7c to 771dba5 Compare March 15, 2025 15:33
@giuliano-macedo giuliano-macedo changed the title Added Module::write options Add Module::write options Mar 15, 2025
@giuliano-macedo giuliano-macedo force-pushed the added-module-write-options branch 4 times, most recently from f58b9c2 to 5050890 Compare March 15, 2025 15:50
@giuliano-macedo giuliano-macedo force-pushed the added-module-write-options branch from 5050890 to c621681 Compare March 16, 2025 13:55
Copy link
Owner

@DelSkayn DelSkayn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the PR!

@DelSkayn DelSkayn merged commit 36364c0 into DelSkayn:master Mar 26, 2025
28 checks passed
@giuliano-macedo giuliano-macedo deleted the added-module-write-options branch March 26, 2025 19:22
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