Skip to content

For the validator CLI, set the exit code correctly even for Node.js v0.10.25 (very old).#7558

Merged
powdercloud merged 1 commit intoampproject:masterfrom
powdercloud:ancient-node-js
Feb 14, 2017
Merged

For the validator CLI, set the exit code correctly even for Node.js v0.10.25 (very old).#7558
powdercloud merged 1 commit intoampproject:masterfrom
powdercloud:ancient-node-js

Conversation

@powdercloud
Copy link
Copy Markdown
Contributor

is to avoid using process.exitCode and instead use process.exit, but do so inside the callback for process.stdout.write or process.stderr.write.

I still care about compatibility this far back because Ubuntu 14.04 LT uses this Node.js version by default. (http://packages.ubuntu.com/trusty/nodejs). While most Javascript programmers will install a more recent version, it's still good to have the CLI work out of the box for less technical users.

is to avoid using process.exitCode and instead use process.exit,
but do so inside the callback for process.(stdout or stderr).write.
@powdercloud powdercloud merged commit 6a63d49 into ampproject:master Feb 14, 2017
@powdercloud powdercloud deleted the ancient-node-js branch February 14, 2017 22:50
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
…project#7558)

is to avoid using process.exitCode and instead use process.exit,
but do so inside the callback for process.(stdout or stderr).write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants