Skip to content

fix(random): validate supported typed data inputs - #374

Open
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:fix/fill-random-typed-data-validation
Open

fix(random): validate supported typed data inputs#374
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:fix/fill-random-typed-data-validation

Conversation

@harrshita123

Copy link
Copy Markdown
Contributor

Summary

  • validate fillRandomBytes input types at the shared API boundary
  • reject unsupported TypedData implementations consistently across backends
  • add shared regression coverage for Float32List, Float64List, and ByteData

Testing

  • dart analyze --fatal-warnings .
  • dart test -p vm test/webcrypto_test.dart
  • dart test -p chrome -c dart2js,dart2wasm test/webcrypto_test.dart -n 'fillRandomBytes'

Fixes #370

@harrshita123
harrshita123 marked this pull request as ready for review August 22, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: fillRandomBytes validates TypedData types inconsistently across backends

1 participant