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 36
36
37
37
# Reset this number to 0 on major V8 upgrades.
38
38
# Increment by one for each non-official patch applied to deps/v8.
39
- 'v8_embedder_string' : '-node.15 ' ,
39
+ 'v8_embedder_string' : '-node.16 ' ,
40
40
41
41
##### V8 defaults for Node.js #####
42
42
Original file line number Diff line number Diff line change @@ -231,8 +231,7 @@ Reject(Object) {
231
231
// the PromiseReaction (aka we can pass undefined to
232
232
// PerformPromiseThen), since this is only necessary for DevTools and
233
233
// PromiseHooks.
234
- if (promiseResolveFunction != Undefined ||
235
- IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate() ||
234
+ if (promiseResolveFunction != Undefined || NeedsAnyPromiseHooks() ||
236
235
IsPromiseSpeciesProtectorCellInvalid() || Is<Smi>(nextValue) ||
237
236
!IsPromiseThenLookupChainIntact(
238
237
nativeContext, UnsafeCast<HeapObject>(nextValue).map)) {
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ exceptions();
246
246
( function regress1126309 ( ) {
247
247
function __f_16 ( test ) {
248
248
test ( ) ;
249
- d8 . promise . setHooks ( undefined , ( ) => { } ) ;
249
+ d8 . promise . setHooks ( undefined , ( ) => { } ) ;
250
250
% PerformMicrotaskCheckpoint ( ) ;
251
251
d8 . promise . setHooks ( ) ;
252
252
}
@@ -262,3 +262,14 @@ exceptions();
262
262
% PerformMicrotaskCheckpoint ( ) ;
263
263
d8 . promise . setHooks ( ) ;
264
264
} ) ( ) ;
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