| commit | e9cbd4896acc6f8266f336cf43feab80b434e3a1 | [log] [tgz] |
|---|---|---|
| author | Ben Clayton <bclayton@google.com> | Tue Oct 19 19:18:42 2021 +0000 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 19 19:18:42 2021 +0000 |
| tree | cc772bcecbe33eb1c90e642b2677663539e6edea | |
| parent | 0e3d4fcbd47b12eabc573cd4be28007c27df3548 [diff] [blame] |
dawn_node: Track promises These should always be resolved or rejected. The Fatal() call, when a promise is not resolved or rejected, is currently disabled due to https://github.com/gpuweb/cts/issues/784. Bug: dawn:1123 Change-Id: Ie0e8ac187ad70be0fea41cd66956d0bfd9c53212 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66821 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/src/dawn_node/binding/GPUShaderModule.cpp b/src/dawn_node/binding/GPUShaderModule.cpp index 3323ba5..52efabd 100644 --- a/src/dawn_node/binding/GPUShaderModule.cpp +++ b/src/dawn_node/binding/GPUShaderModule.cpp
@@ -91,7 +91,7 @@ Promise promise; AsyncTask task; }; - auto ctx = new Context{env, env, async_}; + auto ctx = new Context{env, Promise(env, PROMISE_INFO), async_}; auto promise = ctx->promise; shader_.GetCompilationInfo(