File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ using v8::ReadOnly;
28
28
using v8::SideEffectType;
29
29
using v8::Signature;
30
30
using v8::String;
31
+ using v8::Undefined;
31
32
using v8::Value;
32
33
33
34
namespace crypto {
@@ -575,7 +576,7 @@ Local<Value> StatelessDiffieHellman(
575
576
their_key,
576
577
&buf,
577
578
&out_size))
578
- return Local<Value>( );
579
+ return Undefined (env-> isolate () );
579
580
580
581
return Buffer::New (env,
581
582
buf,
@@ -621,7 +622,7 @@ void DiffieHellman::Stateless(const FunctionCallbackInfo<Value>& args) {
621
622
ManagedEVPPKey their_key = their_key_object->Data ()->GetAsymmetricKey ();
622
623
623
624
Local<Value> out = StatelessDiffieHellman (env, our_key, their_key);
624
- if (out. IsEmpty () || Buffer::Length (out) == 0 )
625
+ if (out-> IsUndefined () || Buffer::Length (out) == 0 )
625
626
return ThrowCryptoError (env, ERR_get_error (), " diffieHellman failed" );
626
627
627
628
args.GetReturnValue ().Set (out);
You can’t perform that action at this time.
0 commit comments