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>
This commit is contained in:
parent
5d0a770c12
commit
57a08e2f70
@ -194,7 +194,7 @@ function error_test() {
|
||||
{
|
||||
client: client_unix,
|
||||
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,
|
||||
@ -204,7 +204,7 @@ function error_test() {
|
||||
{
|
||||
client: client_unix,
|
||||
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,
|
||||
send: '(function() { "use strict"; eval = 17; })()',
|
||||
@ -212,7 +212,7 @@ function error_test() {
|
||||
{
|
||||
client: client_unix,
|
||||
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:
|
||||
{ client: client_unix, send: 'function blah() { return 1; }',
|
||||
|
Loading…
x
Reference in New Issue
Block a user