dotnet / dotnet/runtime

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

オープン
#123,731 コメント 5 件 リアクション 0 件 担当者 1 名 @pavelsavara が担当を希望しています GitHub で見る
arch-wasm area-System.Runtime.InteropServices.JavaScript os-browser
主要言語
C#
スター
18.3k
フォーク
5.6k
PR マージ指標
PR 指標を取得中

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。