jslint-org / jslint

JSLint, The JavaScript Code Quality and Coverage Tool

Home Page:https://www.jslint.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSLint doesn't recognize a .catch() as a valid operator to follow a .then() of a dynamic import promise

tmb-github opened this issue · comments

JSLint edition v2021.6.4-beta
Options selected: [x] in development [x] in browser

JSLint doesn't recognize a .catch() as a valid operator to follow a .then() of a dynamic import promise:

var o = {};

import("./common.mjs").then(function ({default: object}) {
    o.first = object;
}).catch(function (error) {
    console.log(error);
});

Error message:

[JSLint was unable to finish] Unexpected '.'.

should be fixed now. thx for reporting,