| 79 | console.log('Hermes result key is: test.res.' + testKey); |
| 80 | |
| 81 | function 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 | |
| 107 | function testRunner(testFilename) { |
| 108 | var processArgs = getArgs(testFilename); |