We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3681c4b commit 088c5f0Copy full SHA for 088c5f0
src/crypto/crypto_keys.cc
@@ -894,8 +894,8 @@ size_t KeyObjectData::GetSymmetricKeySize() const {
894
}
895
896
bool KeyObjectHandle::HasInstance(Environment* env, Local<Value> value) {
897
- auto t = env->crypto_key_object_handle_constructor();
898
- return t.IsEmpty() && t->HasInstance(value);
+ Local<FunctionTemplate> t = env->crypto_key_object_handle_constructor();
+ return !t.IsEmpty() && t->HasInstance(value);
899
900
901
v8::Local<v8::Function> KeyObjectHandle::Initialize(Environment* env) {
0 commit comments