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: dart-lang/sdk#55496