File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 3636
3737 # Reset this number to 0 on major V8 upgrades.
3838 # Increment by one for each non-official patch applied to deps/v8.
39- 'v8_embedder_string' : '-node.80 ' ,
39+ 'v8_embedder_string' : '-node.81 ' ,
4040
4141 ##### V8 defaults for Node.js #####
4242
Original file line number Diff line number Diff line change @@ -233,8 +233,7 @@ Reject(Object) {
233233 // the PromiseReaction (aka we can pass undefined to
234234 // PerformPromiseThen), since this is only necessary for DevTools and
235235 // PromiseHooks.
236- if (promiseResolveFunction != Undefined ||
237- IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate() ||
236+ if (promiseResolveFunction != Undefined || NeedsAnyPromiseHooks() ||
238237 IsPromiseSpeciesProtectorCellInvalid() || Is<Smi>(nextValue) ||
239238 !IsPromiseThenLookupChainIntact(
240239 nativeContext, UnsafeCast<HeapObject>(nextValue).map)) {
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ exceptions();
246246( function regress1126309 ( ) {
247247 function __f_16 ( test ) {
248248 test ( ) ;
249- d8 . promise . setHooks ( undefined , ( ) => { } ) ;
249+ d8 . promise . setHooks ( undefined , ( ) => { } ) ;
250250 % PerformMicrotaskCheckpoint ( ) ;
251251 d8 . promise . setHooks ( ) ;
252252 }
@@ -262,3 +262,14 @@ exceptions();
262262 % PerformMicrotaskCheckpoint ( ) ;
263263 d8 . promise . setHooks ( ) ;
264264} ) ( ) ;
265+
266+
267+ ( function promiseAll ( ) {
268+ let initCount = 0 ;
269+ d8 . promise . setHooks ( ( ) => { initCount ++ } ) ;
270+ Promise . all ( [ Promise . resolve ( 1 ) ] ) ;
271+ % PerformMicrotaskCheckpoint ( ) ;
272+ assertEquals ( initCount , 3 ) ;
273+
274+ d8 . promise . setHooks ( ) ;
275+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments