Skip to content

Commit

Permalink
test: exported method can be static; will never be called directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoisel committed Aug 13, 2019
1 parent f985a25 commit 9209b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/addons/hello-world/binding.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <node.h>
#include <v8.h>

void Method(const v8::FunctionCallbackInfo<v8::Value>& args) {
static void Method(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = args.GetIsolate();
args.GetReturnValue().Set(v8::String::NewFromUtf8(
isolate, "world", v8::NewStringType::kNormal).ToLocalChecked());
Expand Down

0 comments on commit 9209b14

Please sign in to comment.