Skip to content

Commit

Permalink
src: fix -Wunused-result warning in e38bade
Browse files Browse the repository at this point in the history
This patch fixes the warning introduced by the changes in e38bade.

Ref: #6092
  • Loading branch information
thefourtheye committed Apr 19, 2016
1 parent e38bade commit 52a40be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3229,7 +3229,8 @@ void SetupProcessObject(Environment* env,

// pre-set _events object for faster emit checks
Local<Object> events_obj = Object::New(env->isolate());
events_obj->SetPrototype(env->context(), Null(env->isolate()));
maybe = events_obj->SetPrototype(env->context(), Null(env->isolate()));
CHECK(maybe.FromJust());
process->Set(env->events_string(), events_obj);
}

Expand Down

0 comments on commit 52a40be

Please sign in to comment.