From 21034539773b729b7af6392c96e15329d323dd8b Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Fri, 6 Oct 2017 09:50:09 -0700 Subject: [PATCH] test: replaces fixturesDir with fixtures methods PR-URL: https://github.com/nodejs/node/pull/15817 Reviewed-By: Ryan Graham Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- test/sequential/test-regress-GH-4015.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/sequential/test-regress-GH-4015.js b/test/sequential/test-regress-GH-4015.js index 744afd7774aadb..fcfd443586beee 100644 --- a/test/sequential/test-regress-GH-4015.js +++ b/test/sequential/test-regress-GH-4015.js @@ -1,10 +1,11 @@ 'use strict'; -const common = require('../common'); +require('../common'); +const { fixturesDir } = require('../common/fixtures'); const assert = require('assert'); -const exec = require('child_process').exec; +const { exec } = require('child_process'); const cmd = - `"${process.execPath}" "${common.fixturesDir}/test-regress-GH-4015.js"`; + `"${process.execPath}" "${fixturesDir}/test-regress-GH-4015.js"`; exec(cmd, function(err, stdout, stderr) { assert(/RangeError: Maximum call stack size exceeded/.test(stderr));