Skip to content

Conversation

ABBAPOH
Copy link
Contributor

@ABBAPOH ABBAPOH commented Jan 11, 2025

For optimisation, we share some huge objects in different scripts and make them "const" to prevent user from accidentally changing them.

Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Still using JSValueConst

@ABBAPOH
Copy link
Contributor Author

ABBAPOH commented Jan 12, 2025

Apparently, calling "git add" prior to committing really helps^^

@ABBAPOH ABBAPOH force-pushed the seal branch 2 times, most recently from c638925 to fda984f Compare January 12, 2025 15:00
@ABBAPOH ABBAPOH changed the title Add JS_ObjectSeal method Add JS_SealObject and JS_FreezeObject methods Jan 12, 2025
Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

LGTM. New API so it'd be good to get sign-off from at least one other committer. @saghul?

@saghul saghul merged commit d02a4ba into quickjs-ng:master Jan 14, 2025
59 checks passed
@ABBAPOH ABBAPOH deleted the seal branch January 16, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants