dotnet / dotnet/runtime

[browser][wasm] Array values are not subject to assertions

Aperta
#123,731 5 commenti 0 reazioni 1 assegnatario Rivendicata da @pavelsavara Vedi su GitHub
arch-wasm area-System.Runtime.InteropServices.JavaScript os-browser
Lingua principale
C#
Stelle
18.3k
Fork
5.6k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

### Description

Noticed in https://github.com/dotnet/runtime/pull/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 https://github.com/dotnet/runtime/pull/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_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.