Expected Behavior
When node.js exceptions are enabled in the VS debugger, the exception should be caught and displayed to the user.
Actual Behavior
Error is not displayed
Steps to Reproduce
- Create new js console app.
- Enable node.js break on exceptions
- In
app.js, add
Interestingly, builtin subclasses of Error seem to work fine, as do non-error objects:
// these all work
throw 'I am error';
throw {};
throw new EvalError('eval')
But this does not work:
function SubError() { }
SubError.prototype = new Error
throw new SubError()
Expected Behavior
When node.js exceptions are enabled in the VS debugger, the exception should be caught and displayed to the user.
Actual Behavior
Error is not displayed
Steps to Reproduce
app.js, addInterestingly, builtin subclasses of Error seem to work fine, as do non-error objects:
But this does not work: