v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
async-hooks-wrapper.cc File Reference
Include dependency graph for async-hooks-wrapper.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 

Macros

#define SET_HOOK_FN(name)
 

Macro Definition Documentation

◆ SET_HOOK_FN

#define SET_HOOK_FN ( name)
Value:
MaybeLocal<Value> name##_maybe_func = fn_obj->Get( \
currentContext, String::NewFromUtf8Literal(v8_isolate, #name)); \
Local<Value> name##_func; \
if (name##_maybe_func.ToLocal(&name##_func) && name##_func->IsFunction()) { \
wrap->set_##name##_function(name##_func.As<Function>()); \
} else { \
try_catch.ReThrow(); \
}