lepu-test-platform-web/node_modules/fibers/test/stack-overflow.js

13 lines
209 B
JavaScript
Raw Normal View History

var Fiber = require('fibers');
try {
Fiber(function() {
function foo() {
var hello = Math.random();
foo();
}
foo();
}).run();
} catch (err) {
err.name === 'RangeError' && console.log('pass');
}