• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3require('../common');
4
5const assert = require('assert');
6const fs = require('fs');
7
8function recurse() {
9  fs.readdirSync('.');
10  recurse();
11}
12
13assert.throws(
14  () => recurse(),
15  {
16    name: 'RangeError',
17    message: 'Maximum call stack size exceeded'
18  }
19);
20