[CP] [dart2wasm] Fix array.new_fixed calls with too large size #55873
Labels
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
Commit(s) to merge
c7834b6
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/368644
Issue Description
Certain large apps can result in dart2wasm emitting an
array.new_fixed
instruction with more than 10000 elements, which causes a runtime error when running in browsers.What is the fix
Avoid using
array.new_fixed
if the array is larger than 10000Why cherry-pick
Users are hitting this on stable channel.
Risk
Low
Issue link(s)
#55396, #55872
Extra Info
No response
The text was updated successfully, but these errors were encountered: