google / google/webcrypto.dart

Unable to handle JavaScriptError when running dart2wasm

Open
#182 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
116
Forks
110
Avg merge
6d 8h
Merged PRs (30d)
9

Description

Dart 3.5.4 does not expose `_JavaScriptError` when compile to wasm, so errors generated by the browser cannot be properly handled.
Instead we'll throw `UnknownError` as a temporary workaround to handle `_JavaScriptError` within `package:wepcrypto`.

See also: https://github.com/dart-lang/sdk/issues/55496

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.