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