From 7c0079f1beea81270597b5358cb0d783c617efde Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 29 Mar 2017 14:22:18 +0200 Subject: [PATCH] src: add .FromJust(), fix -Wunused-result warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- src/node_serdes.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_serdes.cc b/src/node_serdes.cc index 144de1695eefe9..13bc27685d15dd 100644 --- a/src/node_serdes.cc +++ b/src/node_serdes.cc @@ -271,7 +271,7 @@ DeserializerContext::DeserializerContext(Environment* env, data_(reinterpret_cast(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(this); } @@ -388,8 +388,8 @@ void DeserializerContext::ReadUint64(const FunctionCallbackInfo& args) { Local context = ctx->env()->context(); Local 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); }