We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
v8::External
1 parent aa445ab commit 4a968f5Copy full SHA for 4a968f5
1 file changed
src/node_ffi.cc
@@ -442,8 +442,8 @@ void DynamicLibrary::InvokeFunction(const FunctionCallbackInfo<Value>& args) {
442
443
void DynamicLibrary::InvokeFunctionSB(const FunctionCallbackInfo<Value>& args) {
444
Environment* env = Environment::GetCurrent(args);
445
- FFIFunctionInfo* info =
446
- static_cast<FFIFunctionInfo*>(args.Data().As<External>()->Value());
+ FFIFunctionInfo* info = static_cast<FFIFunctionInfo*>(
+ args.Data().As<External>()->Value(v8::kExternalPointerTypeTagDefault));
447
FFIFunction* fn = info->fn.get();
448
449
if (fn == nullptr || fn->closed || fn->ptr == nullptr) {
0 commit comments