diff --git a/src/node_serdes.cc b/src/node_serdes.cc index 144de1695e..13bc27685d 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); }