Skip to content

Commit

Permalink
objectwrap: forgot return statement (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof authored and gengjiawen committed Dec 13, 2019
1 parent 8c093b8 commit 3d61643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 6_object_wrap/node-addon-api/myobject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ MyObject::MyObject(const Napi::CallbackInfo& info)

if (length <= 0 || !info[0].IsNumber()) {
Napi::TypeError::New(env, "Number expected").ThrowAsJavaScriptException();
return;
}

Napi::Number value = info[0].As<Napi::Number>();
Expand Down

0 comments on commit 3d61643

Please sign in to comment.