Skip to content

Commit 57a08e2

Browse files
committed
test: remove obsolete lint config comments
The `max-len` ESLint rule is configured to be forgiving for lines that contain a regular expression literal. Remove disabling comments that are no longer required in test-repl.js PR-URL: #12868 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 5d0a770 commit 57a08e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-repl.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function error_test() {
194194
{
195195
client: client_unix,
196196
send: '(function(a, a, b) { "use strict"; return a + b + c; })()',
197-
expect: /\bSyntaxError: Duplicate parameter name not allowed in this context/ // eslint-disable-line max-len
197+
expect: /\bSyntaxError: Duplicate parameter name not allowed in this context/
198198
},
199199
{
200200
client: client_unix,
@@ -204,15 +204,15 @@ function error_test() {
204204
{
205205
client: client_unix,
206206
send: '(function() { "use strict"; var x; delete x; })()',
207-
expect: /\bSyntaxError: Delete of an unqualified identifier in strict mode/ // eslint-disable-line max-len
207+
expect: /\bSyntaxError: Delete of an unqualified identifier in strict mode/
208208
},
209209
{ client: client_unix,
210210
send: '(function() { "use strict"; eval = 17; })()',
211211
expect: /\bSyntaxError: Unexpected eval or arguments in strict mode/ },
212212
{
213213
client: client_unix,
214214
send: '(function() { "use strict"; if (true) function f() { } })()',
215-
expect: /\bSyntaxError: In strict mode code, functions can only be declared at top level or inside a block\./ // eslint-disable-line max-len
215+
expect: /\bSyntaxError: In strict mode code, functions can only be declared at top level or inside a block\./
216216
},
217217
// Named functions can be used:
218218
{ client: client_unix, send: 'function blah() { return 1; }',

0 commit comments

Comments
 (0)