Repository navigation
Wait for custom fonts to load before continuing - #401
Merged
Merged
Conversation
Mistium
pushed a commit
to MistWarp/scratch-vm
that referenced
this pull request
Nov 1, 2026
(cherry picked from commit cecd467)
Mistium
added a commit
to MistWarp/scratch-vm
that referenced
this pull request
Nov 1, 2026
… suite (#38) * Fix custom reporter exit state analysis (TurboWarp#368) Fixes TurboWarp#358 (cherry picked from commit c5bf9c3) * Fix type analysis of casts with partially matching input types (TurboWarp#369) Fixes TurboWarp#356 (cherry picked from commit 984e05f) * Fix isNotActuallyZero on very small numbers (TurboWarp#373) Fixes TurboWarp#361 (cherry picked from commit 8c62a15) * Fix casting constant boolean interpretable string to number (TurboWarp#371) They both should convert to 0 Fixes TurboWarp#359 (cherry picked from commit 32b5428) * Fix tangent (TurboWarp#381) fix TurboWarp#380 (cherry picked from commit 042235b) * Fix missing optimization passes on procedures with multiple variants (TurboWarp#383) (cherry picked from commit 7d0d67a) * Actually delete assets when unloaded (TurboWarp#382) (cherry picked from commit cb8a394) * Fix compiler error when argument name is literal number (TurboWarp#387) (cherry picked from commit 55fd9b7) * Always reject javascript: URLs in canEmbed (cherry picked from commit 984b4f4) * Fix some limited prototype pollution (cherry picked from commit f26ff67) * Wait for custom fonts to load before continuing (TurboWarp#401) (cherry picked from commit cecd467) * Use tap assertions in the font loading test from upstream * Reject sandboxed extension loads when the script throws while running Ported from TurboWarp ce39f14 (TurboWarp#399, Improve extension error handling). MistWarp's unsandboxed loader already catches runtime errors by script name, and its failure path already lets a failed extension load again, so only the sandboxed iframe path changes: it now loads scripts through upstream's tw-load-script-element, which rejects as soon as the script throws instead of leaving the load waiting. (cherry picked from commit ce39f14) * Ask about every project extension at once Ported from TurboWarp 0cb82af (TurboWarp#400, Query security manager extension permissions concurrently). MistWarp keeps its own loading model, where a denied or failing extension is recorded and the project still opens, but now asks the security manager about all of a project's custom extensions together, so it can combine them into one prompt, instead of one after another. Also uses tap assertions in the canEmbed test from 984b4f4. (cherry picked from commit 0cb82af) * Implement argument defaults in addAddonBlock (cherry picked from commit e9c6e12) * Import most of the forkphorus test suite (TurboWarp#303) forkphorus has its own test suite, most of which are regression tests for real bugs in a real compiler so it may be worth testing against. forkphorus-befunge-eratosthenes and forkphorus-string-functions are probably the most meaningful new test cases; at the very least i wouldn't have needed a new test case in TurboWarp#300 to see changes in snapshots if they were merged The tests also add coverage for specializations like "delete 1 of list" that somehow weren't in the suite before? (cherry picked from commit 8ce06bc) * Drop comments from the ported upstream code MistWarp code carries no comments, so the explanatory comments and JSDoc lines that came with the TurboWarp ports are removed; tool directives stay. * Regenerate compiler snapshots after the upstream ports Adds snapshots for the forkphorus fixtures and removes one for a fixture that does not exist. No existing compiler output changes. --------- Co-authored-by: Thomas Weber <muffin@mailbox.org> Co-authored-by: Thomas Weber <muffin@muffin.ink>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related to
TurboWarp/packager#999
TurboWarp/packager#1078
needs
TurboWarp/scratch-render#29