diff --git a/.travis.yml b/.travis.yml index f040add..c4e0638 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ node_js: - 12 - 11 - 10 + - 10.0 os: - linux diff --git a/binding.gyp b/binding.gyp index 7006c84..e8d8eeb 100644 --- a/binding.gyp +++ b/binding.gyp @@ -9,6 +9,9 @@ ], "include_dirs": [ " obj) { @@ -32,5 +38,5 @@ SSL* unwrap_ssl(napi_env env, Napi::Object socket) { Local wrap_v8 = v8_local_obj_from_napi_value(wrap_js); if (v8_local_obj_ctor(wrap_v8)!="TLSWrap") throw Napi::TypeError::New(env, "'_handle' property is not TLSWrap"); - return TLSWrap2::FromJSObject(wrap_v8)->get_ssl(); + return node::Unwrap(wrap_v8)->get_ssl(); }