Commit a3f7471
build,test: guard eslint with crypto check
Currently, configuring --without-ssl will cause the lint-js target to
fail with the following error:
$ make lint-js
Running JS linter...
internal/util.js:101
throw new ERR_NO_CRYPTO();
^
Error [ERR_NO_CRYPTO]:
Node.js is not compiled with OpenSSL crypto support
at assertCrypto (internal/util.js:101:11)
at crypto.js:31:1
...
(/node/tools/node_modules/eslint/node_modules/file-entry-cache/
cache.js:2:14)
at Module._compile (internal/modules/cjs/loader.js:746:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:757:10)
make: *** [lint-js] Error 1
There are also a number of tests that are affected in a similar way.
This commit adds crypto checks to allow for lint-js and the affected
tests to be skipped when configured --without-ssl.
PR-URL: #26182
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 28758b8 commit a3f7471Copy full SHA for a3f7471
File tree
Expand file treeCollapse file tree
18 files changed
+40
-2
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
18 files changed
+40
-2
lines changedOpen diff view settings
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1184 | 1184 | |
1185 | 1185 | |
1186 | 1186 | |
1187 | | - |
1188 | | - |
| 1187 | + |
| 1188 | + |
| 1189 | + |
| 1190 | + |
| 1191 | + |
| 1192 | + |
1189 | 1193 | |
1190 | 1194 | |
1191 | 1195 | |
|
Collapse file
test/parallel/test-eslint-alphabetize-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-alphabetize-errors.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-crypto-check.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-crypto-check.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-documented-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-documented-errors.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-duplicate-requires.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-duplicate-requires.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-eslint-check.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-eslint-check.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-inspector-check.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-inspector-check.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-lowercase-name-for-primitive.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-lowercase-name-for-primitive.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-no-let-in-for-declaration.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-no-let-in-for-declaration.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-no-unescaped-regexp-dot.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-no-unescaped-regexp-dot.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
0 commit comments