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:
committed by
Henry Zhu
parent
3cc38a0063
commit
88eec4b852
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-dashed-with-param/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-dashed-with-param/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--expose-debug-as=customDebug", "--eval", "console.log(customDebug.Debug.DebugEvent.Break)"],
|
||||
"stdout": "1"
|
||||
}
|
||||
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-dashed/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-dashed/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--expose-gc", "--eval", "console.log(typeof global.gc)"],
|
||||
"stdout": "function"
|
||||
}
|
||||
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-underscored-with-param/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-underscored-with-param/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--expose_debug_as=customDebug", "--eval", "console.log(customDebug.Debug.DebugEvent.Break)"],
|
||||
"stdout": "1"
|
||||
}
|
||||
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-underscored/options.json
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel-node/v8Flag-underscored/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--expose_gc", "--eval", "console.log(typeof global.gc)"],
|
||||
"stdout": "function"
|
||||
}
|
||||
Reference in New Issue
Block a user