Skip to content

Commit

Permalink
fixup! fixup! src: add additional utilities to crypto::SecureContext
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Dec 19, 2022
1 parent 3681c4b commit e4321c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/crypto_keys.cc
Expand Up @@ -894,8 +894,8 @@ size_t KeyObjectData::GetSymmetricKeySize() const {
}

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

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

0 comments on commit e4321c8

Please sign in to comment.