(asyncId, triggerAsyncId, resource)
| 546 | |
| 547 | // This is the equivalent of the native push_async_ids() call. |
| 548 | function pushAsyncContext(asyncId, triggerAsyncId, resource) { |
| 549 | const offset = async_hook_fields[kStackLength]; |
| 550 | execution_async_resources[offset] = resource; |
| 551 | if (offset * 2 >= async_wrap.async_ids_stack.length) |
| 552 | return pushAsyncContext_(asyncId, triggerAsyncId); |
| 553 | async_wrap.async_ids_stack[offset * 2] = async_id_fields[kExecutionAsyncId]; |
| 554 | async_wrap.async_ids_stack[offset * 2 + 1] = async_id_fields[kTriggerAsyncId]; |
| 555 | async_hook_fields[kStackLength]++; |
| 556 | async_id_fields[kExecutionAsyncId] = asyncId; |
| 557 | async_id_fields[kTriggerAsyncId] = triggerAsyncId; |
| 558 | } |
| 559 | |
| 560 | |
| 561 | // This is the equivalent of the native pop_async_ids() call. |
no outgoing calls
no test coverage detected
searching dependent graphs…