Using a browser API that returns Promise #44664
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-js-interop
Issues that impact all js interop
I've trying to use
window.crypto.subtle.generateKey
and gotcrypto_subtle.dart
working ondartdevc
anddart2js
, butflutter run -d web-server --release
is broken (I couldn't reproduce the issue withdart2js -O4
).If I use
CryptoKey
fromdart:html
, I can get it working onflutter run -d web-server --release
, as well asflutter test --platform chrome
, but notdart test -p chrome
.Minimal example with comments:
https://gist.github.com/jonasfj/30d7a41b57d1af9b84edb039f1912011
Context: google/webcrypto.dart#7
The text was updated successfully, but these errors were encountered: