0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/tools
Ruben Bridgewater 1a5f6705c6
tools: fix eslint isRequired
Currently the call can lead to a TypeError with the message:
`Cannot read property 'value' of undefined`.

This fixes it by first checking that the first argument is truthy.

PR-URL: https://github.com/nodejs/node/pull/18729
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2018-02-12 14:49:38 +01:00
..
bootstrap tools: add Boxstarter script 2017-11-30 11:35:45 +01:00
configure.d tools: fix AttributeError: __exit__ on Python 2.6 2017-12-27 19:41:34 +01:00
doc tools: add FileHandle to doc/type-parser.js 2018-02-07 00:27:43 +02:00
eslint-rules tools: fix eslint isRequired 2018-02-12 14:49:38 +01:00
gyp Revert "tools: teach gyp to write an 'all deps' rule" 2018-01-25 08:18:42 +11:00
icu src: add "icu::" prefix before ICU symbols 2018-02-09 18:09:08 -08:00
macos-installer
msvs
node_modules tools: add babel-eslint 2018-01-11 09:50:47 +01:00
pkgsrc
remark-cli
remark-preset-lint-node tools: host remark-preset-lint-node in-tree 2018-01-05 03:11:48 +01:00
rpm
.eslintrc.yaml
certdata.txt
check-imports.py
compress_json.py
cpplint.py tools: add cpplint rule for NULL usage 2017-12-01 07:45:05 +01:00
create_android_makefiles
create_expfile.sh
genv8constants.py
getmoduleversion.py
getnodeversion.py
gyp_node.py
install.py
js2c.py
license2rtf.js
license-builder.sh tools: add babel-eslint 2018-01-11 09:50:47 +01:00
lint-js.js tools: move eslint from tools to tools/node_modules 2018-01-11 09:48:05 +01:00
lsan_suppressions.txt
macosx-firewall.sh
make-v8.sh
Makefile
mk-ca-bundle.pl
mkssldef.py
osx-codesign.sh
osx-pkg-postinstall.sh
osx-productsign.sh
release.sh
run-valgrind.py
sign.bat
specialize_node_d.py
test-npm-package.js
test-v8.bat
test.py tools,test: throw if common.PORT used in parallel tests 2017-12-11 19:49:40 -08:00
update-authors.sh
update-babel-eslint.sh tools: add babel-eslint 2018-01-11 09:50:47 +01:00
update-eslint.sh tools: move eslint from tools to tools/node_modules 2018-01-11 09:48:05 +01:00
utils.py