Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dawn][emscripten] Fix promise handling and pass callback.
- Before the code was effectively doing: ``` let ret = resolve(futureId); promise.finally(ret); ``` With the lambda wrapping the resolve call, the callback only happens after the resolution of the parent promise. Bug: 358445329 Change-Id: I9aca5e3476b08660780a32cac6d2cb8d70360ed1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/203420 Reviewed-by: Austin Eng <[email protected]> Commit-Queue: Austin Eng <[email protected]> Commit-Queue: Loko Kung <[email protected]> Auto-Submit: Loko Kung <[email protected]> Reviewed-by: Shrek Shao <[email protected]>
- Loading branch information