ba72890aa7
Change type checks in embedding API functions to return UnhandledExceptionErrors instead of APIErrors so they are catchable by Dart. Fixes invocation_fuzz_test. Bug: https://github.com/dart-lang/sdk/issues/15274 Bug: https://github.com/dart-lang/sdk/issues/23869 Change-Id: Ia6103e7ffceda897e475c1a3ba534c2f4b910475 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110020 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>