MCPcopy Create free account
hub / github.com/compat-table/compat-table / getArgs

Function getArgs

hermes.js:81–105  ·  view source on GitHub ↗
(testFilename)

Source from the content-addressed store, hash-verified

79console.log('Hermes result key is: test.res.' + testKey);
80
81function getArgs(testFilename) {
82 var processArgs = [
83 /*'-enable-eval',*/
84 /*'-allow-function-to-string',*/
85 ]
86 .concat([testFilename])
87 .filter(Boolean);
88
89 // if (argv.promise) {
90 // processArgs.unshift('-Xes6-promise');
91 // }
92
93 if (argv.symbol) {
94 processArgs.unshift('-Xes6-symbol');
95 }
96
97 if (argv.proxy) {
98 processArgs.unshift('-Xes6-proxy');
99 }
100
101 // Comment this to see eval warnings
102 processArgs.unshift('-w');
103
104 return processArgs;
105}
106
107function testRunner(testFilename) {
108 var processArgs = getArgs(testFilename);

Callers 1

testRunnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected