0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/test/sequential/test-regress-GH-4015.js

12 lines
350 B
JavaScript
Raw Normal View History

'use strict';
var common = require('../common');
var assert = require('assert');
var exec = require('child_process').exec;
var cmd = '"' + process.execPath + '" ' +
'"' + common.fixturesDir + '/test-regress-GH-4015.js"';
exec(cmd, function(err, stdout, stderr) {
assert(/RangeError: Maximum call stack size exceeded/.test(stderr));
});