Use the bundled node binary for all npm scripts

It was previously only done for 1 out of 12 scripts.

DISABLE_THIRD_PARTY_CHECK=updating Node.js wrapper
No-Presubmit: true
Bug: chromium:1074325
Change-Id: I18cb95af0acfcabb8b2fcb5e9e889921b0ab04db
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2247644
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
This commit is contained in:
Mathias Bynens
2020-06-16 12:07:58 +00:00
committed by Commit Bot
parent bc260c0567
commit 8a163a0661
2 changed files with 14 additions and 13 deletions
+3 -2
View File
@@ -24,8 +24,9 @@ def RunNode(cmd_parts):
process = subprocess.Popen(cmd, cwd=os.getcwd())
stdout, stderr = process.communicate()
if stderr:
raise RuntimeError('%s failed: %s' % (cmd, stderr))
if process.returncode is not 0:
print('%s failed: %s' % (cmd, stderr))
exit(process.returncode)
return stdout