Skip to content

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

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:fix_strict_js
Mar 10, 2026
Merged

Fix tests that were broken in STRICT_JS mode. NFC#26422
sbc100 merged 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
@sbc100 sbc100 requested a review from dschuff March 10, 2026 17:32
@sbc100 sbc100 merged commit a699999 into emscripten-core:main Mar 10, 2026
37 checks passed
@sbc100 sbc100 deleted the fix_strict_js branch March 10, 2026 17:37
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