Skip to content

fix: Correct URL finalizer for when the URL is undefined - #336

Merged
andreiltd merged 2 commits into
bytecodealliance:mainfrom
TartanLlama:sy/url-finalizer-fix
Oct 21, 2026
Merged

andreiltd merged 2 commits into
bytecodealliance:mainfrom
TartanLlama:sy/url-finalizer-fix

Conversation

@TartanLlama

Copy link
Copy Markdown
Contributor

If a GC occurs at the right (or I guess wrong) moment, the finalizer for a URL object may be called at a point where its URL slot is undefined. This causes the finalizer to crash. This patch checks for the slot being undefined before trying to free it.

Comment thread builtins/web/url.cpp
@andreiltd
andreiltd merged commit fe2c92e into bytecodealliance:main Oct 21, 2026
7 checks passed
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