From 78e11725bc58614148c2659e67b82324131eca52 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 5 Mar 2013 17:47:12 -0800 Subject: [PATCH] test: Pass cli flags in pummel/test-regress-GH-892 --- test/pummel/test-regress-GH-892.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/pummel/test-regress-GH-892.js b/test/pummel/test-regress-GH-892.js index 901e4e9dc9d..0c411849463 100644 --- a/test/pummel/test-regress-GH-892.js +++ b/test/pummel/test-regress-GH-892.js @@ -50,8 +50,15 @@ function makeRequest() { var stderrBuffer = ''; - var child = spawn(process.execPath, - [childScript, common.PORT, bytesExpected]); + // Pass along --trace-deprecation/--throw-deprecation in + // process.execArgv to track down nextTick recursion errors + // more easily. Also, this is handy when using this test to + // view V8 opt/deopt behavior. + var args = process.execArgv.concat([ childScript, + common.PORT, + bytesExpected ]); + + var child = spawn(process.execPath, args); child.on('exit', function(code) { assert.ok(/DONE/.test(stderrBuffer));