(asyncId, type, triggerAsyncId, resource, isPromiseHook = false)
| 502 | |
| 503 | |
| 504 | function emitInitScript(asyncId, type, triggerAsyncId, resource, isPromiseHook = false) { |
| 505 | // Short circuit all checks for the common case. Which is that no hooks have |
| 506 | // been set. Do this to remove performance impact for embedders (and core). |
| 507 | if (!hasHooks(kInit)) |
| 508 | return; |
| 509 | |
| 510 | if (triggerAsyncId === null) { |
| 511 | triggerAsyncId = getDefaultTriggerAsyncId(); |
| 512 | } |
| 513 | |
| 514 | emitInitNative(asyncId, type, triggerAsyncId, resource, isPromiseHook); |
| 515 | } |
| 516 | |
| 517 | |
| 518 | function emitBeforeScript(asyncId, triggerAsyncId, resource, isPromiseHook = false) { |
no test coverage detected
searching dependent graphs…