Skip to content

Commit

Permalink
Fix SetMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Jul 13, 2015
1 parent 8327b6d commit 10f258d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ NAN_INLINE void SetMethod(
HandleScope scope;
v8::Local<v8::Function> fn = New<v8::FunctionTemplate>(
callback)->GetFunction();
v8::Local<v8::String> fn_name = New(name);
v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
fn->SetName(fn_name);
recv->Set(fn_name, fn);
}
Expand Down

0 comments on commit 10f258d

Please sign in to comment.