No message on stack overflow error
Aperta
- Lingua principale
- JavaScript
- Stelle
- 1.9k
- Fork
- 359
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
When running a test that calls a function that overflows the stack,
only "undefined" is printed instead of the error message, which can
be very confusing.
```
$ nodeunit test-stack-overflow.js
test-stack-overflow.js
✖ test
undefined
FAILURES: 1/1 assertions failed (2ms)
```
test-stack-overflow.js:
``` javascript
function rec() { rec(); };
exports.test = function(test) {
rec();
};
```
I was expecting the error I get when rec() is called directly:
```
test-stack-overflow.js:1
on rec() { rec()
^
RangeError: Maximum call stack size exceeded
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.