| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9d7177c commit d9b58a0
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 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.80', | ||
| 39 | + 'v8_embedder_string': '-node.81', | ||
| 40 | 40 | ||
| 41 | 41 | ##### V8 defaults for Node.js ##### | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,8 +233,7 @@ Reject(Object) { | |||
| 233 | 233 | // the PromiseReaction (aka we can pass undefined to | |
| 234 | 234 | // PerformPromiseThen), since this is only necessary for DevTools and | |
| 235 | 235 | // PromiseHooks. | |
| 236 | - if (promiseResolveFunction != Undefined || | ||
| 237 | - IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate() || | ||
| 236 | + if (promiseResolveFunction != Undefined || NeedsAnyPromiseHooks() || | ||
| 238 | 237 | IsPromiseSpeciesProtectorCellInvalid() || Is<Smi>(nextValue) || | |
| 239 | 238 | !IsPromiseThenLookupChainIntact( | |
| 240 | 239 | 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 | + })(); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments