File tree Expand file tree Collapse file tree 9 files changed +13
-13
lines changed
Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ Handle<Value> Method(const Arguments& args) {
99}
1010
1111void init (Handle<Object> target) {
12- target->Get (String::NewSymbol (" exports" ))-> ToObject ()->Set (
12+ target->Get (String::NewSymbol (" exports" )). As <Object> ()->Set (
1313 String::NewSymbol (" hello" ),
1414 FunctionTemplate::New (Method)->GetFunction ());
1515}
1616
17- NODE_MODULE_INIT (hello, init)
17+ NODE_MODULE_M (hello, init)
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ Handle<Value> Add(const Arguments& args) {
2222}
2323
2424void Init (Handle<Object> target) {
25- target->Get (String::NewSymbol (" exports" ))-> ToObject ()->Set (
25+ target->Get (String::NewSymbol (" exports" )). As <Object> ()->Set (
2626 String::NewSymbol (" add" ),
2727 FunctionTemplate::New (Add)->GetFunction ());
2828}
2929
30- NODE_MODULE_INIT (addon, Init)
30+ NODE_MODULE_M (addon, Init)
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ void Init(Handle<Object> target) {
1919 FunctionTemplate::New (RunCallback)->GetFunction ());
2020}
2121
22- NODE_MODULE_INIT (addon, Init)
22+ NODE_MODULE_M (addon, Init)
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ void Init(Handle<Object> target) {
1717 FunctionTemplate::New (CreateObject)->GetFunction ());
1818}
1919
20- NODE_MODULE_INIT (addon, Init)
20+ NODE_MODULE_M (addon, Init)
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ void Init(Handle<Object> target) {
2323 FunctionTemplate::New (CreateFunction)->GetFunction ());
2424}
2525
26- NODE_MODULE_INIT (addon, Init)
26+ NODE_MODULE_M (addon, Init)
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ void InitAll(Handle<Object> target) {
88 MyObject::Init (target);
99}
1010
11- NODE_MODULE_INIT (addon, InitAll)
11+ NODE_MODULE_M (addon, InitAll)
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ void MyObject::Init(Handle<Object> target) {
1717 FunctionTemplate::New (PlusOne)->GetFunction ());
1818
1919 Persistent<Function> constructor = Persistent<Function>::New (tpl->GetFunction ());
20- target->Get (String::NewSymbol (" exports" ))-> ToObject ()->Set (
20+ target->Get (String::NewSymbol (" exports" )). As <Object> ()->Set (
2121 String::NewSymbol (" MyObject" ),
2222 constructor);
2323}
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ void InitAll(Handle<Object> target) {
1616 FunctionTemplate::New (CreateObject)->GetFunction ());
1717}
1818
19- NODE_MODULE_INIT (addon, InitAll)
19+ NODE_MODULE_M (addon, InitAll)
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ Handle<Value> Add(const Arguments& args) {
2424void InitAll (Handle<Object> target) {
2525 MyObject::Init ();
2626
27- target->Get (String::NewSymbol (" exports" ))-> ToObject ()->Set (
27+ target->Get (String::NewSymbol (" exports" )). As <Object> ()->Set (
2828 String::NewSymbol (" createObject" ),
2929 FunctionTemplate::New (CreateObject)->GetFunction ());
3030
31- target->Get (String::NewSymbol (" exports" ))-> ToObject ()->Set (
31+ target->Get (String::NewSymbol (" exports" )). As <Object> ()->Set (
3232 String::NewSymbol (" add" ),
3333 FunctionTemplate::New (Add)->GetFunction ());
3434}
3535
36- NODE_MODULE_INIT (addon, InitAll)
36+ NODE_MODULE_M (addon, InitAll)
You can’t perform that action at this time.
0 commit comments