Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/node_external_reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class ExternalReferenceRegistry {
// Registers both the underlying function pointer
// and the corresponding CFunctionInfo.
void Register(const v8::CFunction& c_func) {
RegisterT(c_func.GetAddress());
RegisterT(c_func.GetTypeInfo());
RegisterT(&c_func);
}

// This can be called only once.
Expand Down
2 changes: 1 addition & 1 deletion src/node_wasi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void WASI::New(const FunctionCallbackInfo<Value>& args) {
template <typename FT, FT F, typename R, typename... Args>
void WASI::WasiFunction<FT, F, R, Args...>::SetFunction(
Environment* env, const char* name, Local<FunctionTemplate> tmpl) {
auto c_function = CFunction::Make(FastCallback);
static auto c_function = CFunction::Make(FastCallback);
Local<FunctionTemplate> t =
FunctionTemplate::New(env->isolate(),
SlowCallback,
Expand Down