Commit 70506f2
update spawnSync for npm run test
In windows platform, the `spawnSync` will fail without explicitly
invoking the `cmd.exe` to run a bat script. When the `spawnSync` failed,
the `stdout` and `stderr` will be undefined. Added protection for them.
Bug: 490139146
Change-Id: Ib744a36c9a81a2bf5b20dae3689acc6b057cad05
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7640129
Commit-Queue: Guangyue Xu <guangyue.xu@microsoft.com>
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>1 parent 9501c91 commit 70506f2
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | | - | |
86 | | - | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
91 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
0 commit comments