[browser][wasm][bindings] Handle case where AsyncStateMachineBox`1 is… (#38655)
authorKenneth Pouncey <kjpou@pt.lu>
Thu, 2 Jul 2020 11:23:30 +0000 (13:23 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2020 11:23:30 +0000 (13:23 +0200)
commit267e2cbfe87f9b75f48384907d78f29ce2f09077
tree0eaf71fec062527b2519cebe234433dd54f53af2
parentec73c56fb803b89f5e41b4c85c5be9f6bd1a5bab
[browser][wasm][bindings] Handle case where AsyncStateMachineBox`1 is… (#38655)

* [browser][wasm][bindings] Handle case where AsyncStateMachineBox`1 is returned

- There are cases where AsyncStateMachineBox`1 is returned instead of instead of Task`1 within the bindings.  This was causing exceptions with Promise processing.

* Use `is_subclass_of` instead of strings to recognize Tasks
src/mono/wasm/runtime/driver.c