File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,9 @@ void TCPWrap::Initialize(Local<Object> target,
55
55
// Init properties
56
56
t->InstanceTemplate ()->Set (String::NewFromUtf8 (env->isolate (), " reading" ),
57
57
Boolean::New (env->isolate (), false ));
58
- t->InstanceTemplate ()->Set (String::NewFromUtf8 (env->isolate (), " owner" ),
59
- Null (env->isolate ()));
60
- t->InstanceTemplate ()->Set (String::NewFromUtf8 (env->isolate (), " onread" ),
61
- Null (env->isolate ()));
62
- t->InstanceTemplate ()->Set (String::NewFromUtf8 (env->isolate (),
63
- " onconnection" ),
64
- Null (env->isolate ()));
58
+ t->InstanceTemplate ()->Set (env->owner_string (), Null (env->isolate ()));
59
+ t->InstanceTemplate ()->Set (env->onread_string (), Null (env->isolate ()));
60
+ t->InstanceTemplate ()->Set (env->onconnection_string (), Null (env->isolate ()));
65
61
66
62
67
63
env->SetProtoMethod (t, " close" , HandleWrap::Close);
You can’t perform that action at this time.
0 commit comments