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/web/06_streams.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/web/06_streams.js') diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js index 06397265c..0b9e00483 100644 --- a/ext/web/06_streams.js +++ b/ext/web/06_streams.js @@ -35,7 +35,6 @@ ObjectPrototypeIsPrototypeOf, ObjectSetPrototypeOf, Promise, - PromiseAll, PromisePrototypeCatch, PromisePrototypeThen, PromiseReject, @@ -43,6 +42,7 @@ queueMicrotask, RangeError, ReflectHas, + SafePromiseAll, SharedArrayBuffer, Symbol, SymbolAsyncIterator, @@ -2302,7 +2302,8 @@ }); } shutdownWithAction( - () => PromiseAll(ArrayPrototypeMap(actions, (action) => action())), + () => + SafePromiseAll(ArrayPrototypeMap(actions, (action) => action())), true, error, ); -- cgit v1.2.3