summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/addons/hello-world/binding.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/addons/hello-world/binding.cc b/test/addons/hello-world/binding.cc
index 82e8c5583d..424fad8445 100644
--- a/test/addons/hello-world/binding.cc
+++ b/test/addons/hello-world/binding.cc
@@ -3,10 +3,6 @@
using namespace v8;
-extern "C" {
- void init(Handle<Object> target);
-}
-
Handle<Value> Method(const Arguments& args) {
HandleScope scope;
return scope.Close(String::New("world"));
@@ -15,3 +11,5 @@ Handle<Value> Method(const Arguments& args) {
void init(Handle<Object> target) {
NODE_SET_METHOD(target, "hello", Method);
}
+
+NODE_MODULE(binding, init);