ubdate
This commit is contained in:
13
node_modules/flagged-respawn/lib/is-v8flags.js
generated
vendored
Normal file
13
node_modules/flagged-respawn/lib/is-v8flags.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
function isV8flags(flag, v8flags) {
|
||||
return v8flags.indexOf(replaceSeparatorsFromDashesToUnderscores(flag)) >= 0;
|
||||
}
|
||||
|
||||
function replaceSeparatorsFromDashesToUnderscores(flag) {
|
||||
var arr = /^(-+)(.*)$/.exec(flag);
|
||||
if (!arr) {
|
||||
return flag;
|
||||
}
|
||||
return arr[1] + arr[2].replace(/\-/g, '_');
|
||||
}
|
||||
|
||||
module.exports = isV8flags;
|
||||
Reference in New Issue
Block a user