Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #84 from DMGambone/Error-with-node-inspector-fix
Browse files Browse the repository at this point in the history
Fix for issue #62 - Debugging query callback with node-inspector!
  • Loading branch information
jkint committed Oct 17, 2012
2 parents c82fd78 + a6d5f4c commit 3ce7df9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/OdbcOperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ namespace mssql
argc = 2;
}

callback->Call(Undefined().As<Object>(), argc, args);
//DMGambone: Implementing the fix that clintwood documented
//for issue #62 - Debugging query callback with node-inspector!
//The original line:
// callback->Call(Undefined().As<Object>(), argc, args);
//causes node-inspector to crash if breakpoints are added in any
//query callback function
callback->Call(Context::GetCurrent()->Global(), argc, args);
}
}

Expand Down

0 comments on commit 3ce7df9

Please sign in to comment.