Browse files

Fix for issue #62 - Debugging query callback with node-inspector!

Per the comments from clintwood, the original line:
callback->Call(Undefined().As<Object>(), argc, args);
causes node-inspector to crash if breakpoints are added in any query
callback function.  This change corrects that.
  • Loading branch information...
1 parent 2ea3207 commit a6d5f4c9e0f0e036ae63a855c51bda4ab8e88508 @DMGambone DMGambone committed Oct 16, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/OdbcOperation.cpp
View
8 src/OdbcOperation.cpp
@@ -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);
}
}

0 comments on commit a6d5f4c

Please sign in to comment.