Skip to content

Conversation

@axlEscalada
Copy link
Contributor

@axlEscalada axlEscalada commented Dec 8, 2025

Fixes #1250

Issue

EventTarget.constructor() used arena.create() which only allocates memory without initializing struct fields. This left the vtable pointer uninitialized, causing alignment panics when js created EventTarget instances.

Testing

  • Added test verifying EventTarget constructor properly initializes vtable and allows event dispatch
  • Verified github.com loads without crashes

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@axlEscalada
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@axlEscalada axlEscalada changed the title Axlescalada/fix alignment event target fix alignment event target Dec 8, 2025
@krichprollsch krichprollsch merged commit 00e18e2 into lightpanda-io:main Dec 8, 2025
10 of 11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uninitialized EventTarget vtable causes alignment panic

3 participants