Commit 47496bf
committed
Fix IndexError when parsing GYP files.
GYP automatically turns variables ending in _dir, _file or _path into
absolute paths but didn't check for empty strings.
It interacted badly with variables inherited through the environment
from npm, the `scripts-prepend-node-path=false` setting in particular
because it is turned into `npm_config_script_prepend_node_path=`.
Fixes: #1217
PR-URL: #1267
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>1 parent b2024de commit 47496bf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2033 | 2033 | | |
2034 | 2034 | | |
2035 | 2035 | | |
2036 | | - | |
| 2036 | + | |
2037 | 2037 | | |
2038 | 2038 | | |
2039 | 2039 | | |
| |||
0 commit comments