summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-27 14:22:34 +0100
committerAnna Henningsen <anna@addaleax.net>2019-01-29 20:02:03 +0100
commit620209628af6c8489300abe5c5b7bee69509ab35 (patch)
tree000acb600004b8ab7c4f1f592108fa7910b41b79 /src/node_crypto.h
parent77fa310949cf926bf7befffff32616cb1ba1c41b (diff)
downloadandroid-node-v8-620209628af6c8489300abe5c5b7bee69509ab35.tar.gz
android-node-v8-620209628af6c8489300abe5c5b7bee69509ab35.tar.bz2
android-node-v8-620209628af6c8489300abe5c5b7bee69509ab35.zip
src: pass along errors from KeyObject instantiation
PR-URL: https://github.com/nodejs/node/pull/25734 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 32b6188259..7c346a6c14 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -442,9 +442,9 @@ class KeyObject : public BaseObject {
static v8::Local<v8::Function> Initialize(Environment* env,
v8::Local<v8::Object> target);
- static v8::Local<v8::Object> Create(Environment* env,
- KeyType type,
- const ManagedEVPPKey& pkey);
+ static v8::MaybeLocal<v8::Object> Create(Environment* env,
+ KeyType type,
+ const ManagedEVPPKey& pkey);
// TODO(tniessen): track the memory used by OpenSSL types
SET_NO_MEMORY_INFO()