Skip to content

Commit fea7d0c

Browse files
committed
Fix command line handling of web_package injector
1 parent 5efe806 commit fea7d0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎internal/web_package/injector.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ function main(params, read = fs.readFileSync, write = fs.writeFileSync, timestam
7575
module.exports = {main};
7676

7777
if (require.main === module) {
78-
const params = fs.readFileSync(args[0], {encoding: 'utf-8'}).split('\n').filter(l => !!l);
78+
// We always require the arguments are encoded into a flagfile
79+
// so that we don't exhaust the command-line limit.
80+
const params = fs.readFileSync(process.argv[0], {encoding: 'utf-8'}).split('\n').filter(l => !!l);
7981
process.exitCode = main(params);
8082
}

0 commit comments

Comments
 (0)