Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5201

Valid JS treated as invalid by editor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.1, 12.2
    • None
    • javascript - Editor
    • None

    Description

      Below is code snipped:

      var fn = function () {
          var actions = new DSsysLibActionIndex.lib.ActionIndex();
          actions.registerAction('asyncModalUpdateModelList', function (modal, params) {
              import('./actions/asyncModalUpdateModelList.js').then(function (Module) {
                  var action = new Module.AsyncModalUpdateModelListAction(modal, params);
                  action.run();
              });
          });
          actions.registerAction('asyncModalUpdateAuthorityList', function (modal, params) {
              import('./actions/asyncModalUpdateAuthorityList.js').then(function (Module) {
                  var action = new Module.AsyncModalUpdateAuthorityListAction(modal, params);
                  action.run();
              });
          });
      };
      

      What is more interesting error appears only on the very first occurrence.

      Next occurrence is treated as valid.

      Attachments

        1. Screenshot 2021-08-20 at 18.23.22.png
          55 kB
          Quintin Siebers
        2. image-2020-12-31-17-20-30-117.png
          26 kB
          Marek Gremblewski

        Activity

          People

            Unassigned Unassigned
            DrezynSoft Marek Gremblewski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: