Skip to content

Conversation

bnoordhuis
Copy link
Contributor

Set the object's opaque to a sentinel value instead of NULL, to stop JS_GetOpaque2 from raising an "illegal class" exception.

Fixes: #651

Set the object's opaque to a sentinel value instead of NULL, to stop
JS_GetOpaque2 from raising an "illegal class" exception.

Fixes: quickjs-ng#651
@bnoordhuis bnoordhuis merged commit 83fe8f1 into quickjs-ng:master Nov 6, 2024
47 checks passed
@bnoordhuis bnoordhuis deleted the fix651 branch November 6, 2024 21:54
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.

WeakRef.deref() should return undefined if value is garbage collected
2 participants