Skip to content
Permalink
Browse files

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>
  • Loading branch information...
Trott committed May 6, 2017
1 parent 5d0a770 commit 57a08e2f70abb608e9c53985584fec891c35f7d1
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-repl.js
@@ -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,15 +204,15 @@ 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; })()',
expect: /\bSyntaxError: Unexpected eval or arguments in strict mode/ },
{
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; }',

0 comments on commit 57a08e2

Please sign in to comment.
You can’t perform that action at this time.