From 7ce00de064dc042fb39b540fea7265075ef56dd5 Mon Sep 17 00:00:00 2001 From: Douglas Crockford Date: Wed, 19 Aug 2015 09:40:12 -0700 Subject: [PATCH] es6 --- jslint.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jslint.js b/jslint.js index 3e938215d..67ae1577f 100644 --- a/jslint.js +++ b/jslint.js @@ -2814,6 +2814,9 @@ var jslint = (function JSLint() { value = name; break; case '(': + if (!option.es6 && typeof extra !== 'string') { + warn('es6'); + } value = do_function({ arity: 'unary', from: name.from,