Bug: JSHint checker ignores Language version options

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Bug: JSHint checker ignores Language version options

Postby pmk65 » Tue Jun 26, 2018 3:31 pm

I got a simple JavaScript function in ES6 format:
Code: Select all
function debounce(callback, delay) {
    var timer = null;

    return function() {
        if (timer) return;

        callback.apply(this, arguments);
        timer = setTimeout(() => timer = null, delay);

In the JSHint JavaScript Checker options, I set Language version options -> EMCAScript version to: "6" and then press Ok.

Then I get this JSHint result back:

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'debounce' is defined but never used.

The 1st one should not be displayed since I specifically choose EMCAScript version 6.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
Posts: 672
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: JSHint checker ignores Language version options

Postby Aivars » Tue Jun 26, 2018 4:27 pm

I'll add this to bugs and we'll figure out what's going on here. Thanks for reporting!
Blumentals Software Programmer
User avatar
Blumentals Software Developer
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 1 guest