From 57a08e2f70abb608e9c53985584fec891c35f7d1 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 5 May 2017 23:02:44 -0700 Subject: [PATCH] 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 Reviewed-By: Vse Mozhet Byt Reviewed-By: Gibson Fahnestock Reviewed-By: Refael Ackermann Reviewed-By: David Cai Reviewed-By: Benjamin Gruenbaum Reviewed-By: Roman Reiss Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-repl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index b22fccb15e2682..86dd96d55072cb 100644 --- a/test/parallel/test-repl.js +++ b/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,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; }',