Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
actually execute the code!
  • Loading branch information
chrisdickinson committed Feb 23, 2015
commit ecc033a96a0f21e6f98a974451b8cf7cf1ea76d4
6 changes: 3 additions & 3 deletions src/async-wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ Handle<Value> AsyncWrap::MakeCallback(const Handle<Function> cb,
Local<Value> ret;

if (has_abort_on_uncaught_and_domains) {
Local<Value> fn = context->Get(env()->domain_abort_uncaught_exc_string());
Local<Value> fn = process->Get(env()->domain_abort_uncaught_exc_string());
if (fn->IsFunction()) {
Local<Array> specialContext;
Local<Array> specialContext = Array::New(env()->isolate(), 2);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor style nit: snake_case, not camelCase.

specialContext->Set(0, context);
specialContext->Set(1, cb);
ret = fn.As<Function>()->Call(specialContext, argc, argv);
ret = fn.As<Function>()->Call(specialContext.As<Object>(), argc, argv);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array is-a Object, you don't have to cast it.

} else {
ret = cb->Call(context, argc, argv);
}
Expand Down