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

Javascript parsing error for Object.assign function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.0, 12.0
    • None
    • javascript - Editor
    • None

    Description

      Example code:

      class Test {
      	test(config) {
      		this.conig = {};
      		Object.assign(this.config, config);
      	}
      }
      

      IDE marks `this` in line 4 and shows warning "The global variable "this" not declared", at the same time it shows no warning in line 3.

      Expected behavior:
      No warning should be shown, that is completely correct code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lobzek Lobzek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: