diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-03-29 15:22:18 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-03-31 22:53:20 +0300 |
commit | 7c0079f1beea81270597b5358cb0d783c617efde (patch) | |
tree | 75e683d28e2efb2555577340034541e611fc2016 /src/node_serdes.cc | |
parent | 8a7db9d4b5798679045d7a4f6f62243ba4be5b8c (diff) |
src: add .FromJust(), fix -Wunused-result warnings
Missed while reviewing 1fde98b ("v8: expose new V8 serialization API.")
PR-URL: https://github.com/nodejs/node/pull/12118
Refs: https://github.com/nodejs/node/pull/11048
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_serdes.cc')
-rw-r--r-- | src/node_serdes.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_serdes.cc b/src/node_serdes.cc index 144de1695ee..13bc27685d1 100644 --- a/src/node_serdes.cc +++ b/src/node_serdes.cc @@ -271,7 +271,7 @@ DeserializerContext::DeserializerContext(Environment* env, data_(reinterpret_cast<const uint8_t*>(Buffer::Data(buffer))), length_(Buffer::Length(buffer)), deserializer_(env->isolate(), data_, length_, this) { - object()->Set(env->context(), env->buffer_string(), buffer); + object()->Set(env->context(), env->buffer_string(), buffer).FromJust(); MakeWeak<DeserializerContext>(this); } @@ -388,8 +388,8 @@ void DeserializerContext::ReadUint64(const FunctionCallbackInfo<Value>& args) { Local<Context> context = ctx->env()->context(); Local<Array> ret = Array::New(isolate, 2); - ret->Set(context, 0, Integer::NewFromUnsigned(isolate, hi)); - ret->Set(context, 1, Integer::NewFromUnsigned(isolate, lo)); + ret->Set(context, 0, Integer::NewFromUnsigned(isolate, hi)).FromJust(); + ret->Set(context, 1, Integer::NewFromUnsigned(isolate, lo)).FromJust(); return args.GetReturnValue().Set(ret); } |