| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ab5bca3 commit ae5aa3e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1141,12 +1141,11 @@ void TLSWrap::Initialize(Local<Object> target, | |||
| 1141 | 1141 | env->SetProtoMethod(t, "getServername", GetServername); | |
| 1142 | 1142 | env->SetProtoMethod(t, "setServername", SetServername); | |
| 1143 | 1143 | ||
| 1144 | - env->set_tls_wrap_constructor_function( | ||
| 1145 | - t->GetFunction(env->context()).ToLocalChecked()); | ||
| 1144 | + Local<Function> fn = t->GetFunction(env->context()).ToLocalChecked(); | ||
| 1146 | 1145 | ||
| 1147 | - target->Set(env->context(), | ||
| 1148 | - tlsWrapString, | ||
| 1149 | - t->GetFunction(env->context()).ToLocalChecked()).Check(); | ||
| 1146 | + env->set_tls_wrap_constructor_function(fn); | ||
| 1147 | + | ||
| 1148 | + target->Set(env->context(), tlsWrapString, fn).Check(); | ||
| 1150 | 1149 | } | |
| 1151 | 1150 | ||
| 1152 | 1151 | } // namespace node | |
| Back | FazBrowse Home | New Git URL |
0 commit comments