Skip to content

Fix tests that were broken in STRICT_JS mode. NFC#26422

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:fix_strict_js
Open

Fix tests that were broken in STRICT_JS mode. NFC#26422
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:fix_strict_js

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 9, 2026

Split out from #26421

touches.item = function(i) { return this[i]; };

var event = document.createEvent('UIEvent');
event.target = Module['canvas'];
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The dispatchEvent call below takes care of setting the target.

@sbc100 sbc100 requested a review from kripken March 10, 2026 00:01
@sbc100 sbc100 enabled auto-merge (squash) March 10, 2026 00:19
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.

1 participant