webcrypto.dart icon indicating copy to clipboard operation
webcrypto.dart copied to clipboard

Consider augmenting _Scope to ensure we clear errors after each operation

Open jonasfj opened this issue 3 years ago • 1 comments

We wrap all (or almost all) FFI code in _Scope, thus, it might make sense to review all usage of _Scope to see if we can augment _Scope such that that clear errors after an operation is done.

We should be handling errors all the places where they can happen, but as added safety it might be wise to clear errors after each operation and throw an error, if BoringCrypto has an error on the stack that we didn't expect to find there.

jonasfj avatar Nov 02 '22 11:11 jonasfj

See also: https://github.com/google/webcrypto.dart/issues/63

jonasfj avatar Nov 02 '22 13:11 jonasfj