From 59ac110edd1f376bed7fa6bbdbe2ee09c266bf74 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sat, 29 Oct 2022 18:25:23 +0900 Subject: fix(core): fix APIs not to be affected by `Promise.prototype.then` modification (#16326) --- ext/webgpu/src/01_webgpu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/webgpu/src') diff --git a/ext/webgpu/src/01_webgpu.js b/ext/webgpu/src/01_webgpu.js index caa103e62..f4d15e2dd 100644 --- a/ext/webgpu/src/01_webgpu.js +++ b/ext/webgpu/src/01_webgpu.js @@ -27,12 +27,12 @@ ObjectDefineProperty, ObjectPrototypeIsPrototypeOf, Promise, - PromiseAll, PromisePrototypeCatch, PromisePrototypeThen, PromiseReject, PromiseResolve, SafeArrayIterator, + SafePromiseAll, Set, SetPrototypeEntries, SetPrototypeForEach, @@ -1517,7 +1517,7 @@ "OperationError", ); } - const operations = PromiseAll(scope.operations); + const operations = SafePromiseAll(scope.operations); return PromisePrototypeThen( operations, () => PromiseResolve(null), -- cgit v1.2.3