Browse Source

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: https://github.com/nodejs/node/pull/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>
v6
Rich Trott 8 years ago
parent
commit
57a08e2f70
  1. 6
      test/parallel/test-repl.js

6
test/parallel/test-repl.js

@ -194,7 +194,7 @@ function error_test() {
{ {
client: client_unix, client: client_unix,
send: '(function(a, a, b) { "use strict"; return a + b + c; })()', send: '(function(a, a, b) { "use strict"; return a + b + c; })()',
expect: /\bSyntaxError: Duplicate parameter name not allowed in this context/ // eslint-disable-line max-len expect: /\bSyntaxError: Duplicate parameter name not allowed in this context/
}, },
{ {
client: client_unix, client: client_unix,
@ -204,7 +204,7 @@ function error_test() {
{ {
client: client_unix, client: client_unix,
send: '(function() { "use strict"; var x; delete x; })()', send: '(function() { "use strict"; var x; delete x; })()',
expect: /\bSyntaxError: Delete of an unqualified identifier in strict mode/ // eslint-disable-line max-len expect: /\bSyntaxError: Delete of an unqualified identifier in strict mode/
}, },
{ client: client_unix, { client: client_unix,
send: '(function() { "use strict"; eval = 17; })()', send: '(function() { "use strict"; eval = 17; })()',
@ -212,7 +212,7 @@ function error_test() {
{ {
client: client_unix, client: client_unix,
send: '(function() { "use strict"; if (true) function f() { } })()', send: '(function() { "use strict"; if (true) function f() { } })()',
expect: /\bSyntaxError: In strict mode code, functions can only be declared at top level or inside a block\./ // eslint-disable-line max-len expect: /\bSyntaxError: In strict mode code, functions can only be declared at top level or inside a block\./
}, },
// Named functions can be used: // Named functions can be used:
{ client: client_unix, send: 'function blah() { return 1; }', { client: client_unix, send: 'function blah() { return 1; }',

Loading…
Cancel
Save