--max-memory and fix test failture.

This commit is contained in:
Peng Lyu
2018-02-13 15:12:07 -08:00
parent 50a1deb9f6
commit 6729e2b7df
12 changed files with 31 additions and 31 deletions

View File

@@ -308,8 +308,8 @@ export async function main(argv: string[]): TPromise<any> {
if (args['js-flags']) {
const match = /max_old_space_size=(\d+)/g.exec(args['js-flags']);
if (match && !args['max_old_space_size']) {
argv.push(`--max_old_space_size=${match[1]}`);
if (match && !args['max-memory']) {
argv.push(`--max-memory=${match[1]}`);
}
}