Support all variations of v8Flags (#3578)

This adds support for specifying v8Flags with dashes. Previously only underscores
were allowed.
Also allows specifying values for v8Flags in the from --flag=value, which was not supported till now.
Also add --inspect support.
This commit is contained in:
Daniel Tschinder
2016-07-18 16:36:03 +02:00
committed by Henry Zhu
parent 3cc38a0063
commit 88eec4b852
5 changed files with 35 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
{
"args": ["--expose-debug-as=customDebug", "--eval", "console.log(customDebug.Debug.DebugEvent.Break)"],
"stdout": "1"
}

View File

@@ -0,0 +1,4 @@
{
"args": ["--expose-gc", "--eval", "console.log(typeof global.gc)"],
"stdout": "function"
}

View File

@@ -0,0 +1,4 @@
{
"args": ["--expose_debug_as=customDebug", "--eval", "console.log(customDebug.Debug.DebugEvent.Break)"],
"stdout": "1"
}

View File

@@ -0,0 +1,4 @@
{
"args": ["--expose_gc", "--eval", "console.log(typeof global.gc)"],
"stdout": "function"
}