()
| 141 | const topLevelResource = {}; |
| 142 | |
| 143 | function executionAsyncResource() { |
| 144 | // Indicate to the native layer that this function is likely to be used, |
| 145 | // in which case it will inform JS about the current async resource via |
| 146 | // the trampoline above. |
| 147 | async_hook_fields[kUsesExecutionAsyncResource] = 1; |
| 148 | |
| 149 | const index = async_hook_fields[kStackLength] - 1; |
| 150 | if (index === -1) return topLevelResource; |
| 151 | const resource = execution_async_resources[index] || |
| 152 | executionAsyncResource_(index); |
| 153 | return lookupPublicResource(resource); |
| 154 | } |
| 155 | |
| 156 | function inspectExceptionValue(e) { |
| 157 | inspect ??= require('internal/util/inspect').inspect; |
no test coverage detected
searching dependent graphs…