Skip to content

Commit 088c5f0

Browse files
committed
fixup! src: add KeyObjectHandle::HasInstance
1 parent 3681c4b commit 088c5f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto/crypto_keys.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ size_t KeyObjectData::GetSymmetricKeySize() const {
894894
}
895895

896896
bool KeyObjectHandle::HasInstance(Environment* env, Local<Value> value) {
897-
auto t = env->crypto_key_object_handle_constructor();
898-
return t.IsEmpty() && t->HasInstance(value);
897+
Local<FunctionTemplate> t = env->crypto_key_object_handle_constructor();
898+
return !t.IsEmpty() && t->HasInstance(value);
899899
}
900900

901901
v8::Local<v8::Function> KeyObjectHandle::Initialize(Environment* env) {

0 commit comments

Comments
 (0)