summaryrefslogtreecommitdiff
path: root/test/addons/hello-world-esm/binding.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/addons/hello-world-esm/binding.cc')
-rw-r--r--test/addons/hello-world-esm/binding.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/addons/hello-world-esm/binding.cc b/test/addons/hello-world-esm/binding.cc
deleted file mode 100644
index 02eecec099..0000000000
--- a/test/addons/hello-world-esm/binding.cc
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <node.h>
-#include <v8.h>
-
-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());
-}
-
-void init(v8::Local<v8::Object> exports) {
- NODE_SET_METHOD(exports, "hello", Method);
-}
-
-NODE_MODULE(NODE_GYP_MODULE_NAME, init)