-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtime.InteropServices.JavaScriptos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Milestone
Description
Description
Noticed in #123523. Int32 array values can overflow without notification to the user (mono & coreclr show this behavior).
Likely this means no value assertions are performed for arrays in general.
Reproduction Steps
UnitTest: System.Runtime.InteropServices.JavaScript.Tests.JSImportTest.Int32ArrayWithOutOfRangeValues
(added in #123523 might not be on main yet)
Expected behavior
JSException with overflow message like for other overflow asserts, for tasks thrown to the receiver, for other argument types thrown back to the caller.
Actual behavior
Int32 overflows, other numerics likely do so too.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtime.InteropServices.JavaScriptos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm