mirror of https://github.com/lukechilds/node.git
Browse Source
Done by not evaluating the code in the first tick. This breaks one test in test-error-reporting.js but I believe this to be a V8 error and I have reported it in http://code.google.com/p/v8/issues/detail?id=764v0.7.4-release
5 changed files with 24 additions and 10 deletions
@ -0,0 +1,13 @@ |
|||||
|
require('../common') |
||||
|
|
||||
|
process.addListener('uncaughtException', function (err) { |
||||
|
puts('Caught exception: ' + err); |
||||
|
}); |
||||
|
|
||||
|
setTimeout(function () { |
||||
|
puts('This will still run.'); |
||||
|
}, 500); |
||||
|
|
||||
|
// Intentionally cause an exception, but don't catch it.
|
||||
|
nonexistentFunc(); |
||||
|
puts('This will not run.'); |
Loading…
Reference in new issue