MCPcopy Create free account
hub / github.com/nodejs/nan / MyObject

Class MyObject

test/cpp/makecallback.cpp:13–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace Nan; // NOLINT(build/namespaces)
12
13class MyObject : public node::ObjectWrap {
14 public:
15 static NAN_MODULE_INIT(Init);
16
17 private:
18 explicit MyObject(v8::Local<v8::Object> resource);
19 ~MyObject();
20
21 AsyncResource async_resource;
22
23 static NAN_METHOD(New);
24 static NAN_METHOD(CallEmit);
25 static Persistent<v8::Function> constructor;
26};
27
28Persistent<v8::Function> MyObject::constructor;
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected