You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Lobzek (Jira)" <ji...@apache.org> on 2020/03/04 15:45:00 UTC

[jira] [Created] (NETBEANS-3948) Javascript parsing error for Object.assign function

Lobzek created NETBEANS-3948:
--------------------------------

             Summary: Javascript parsing error for Object.assign function
                 Key: NETBEANS-3948
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3948
             Project: NetBeans
          Issue Type: Bug
          Components: javascript - Editor
            Reporter: Lobzek


Example code:
{code:javascript}
class Test {
	test(config) {
		this.conig = {};
		Object.assign(this.config, config);
	}
}
{code}
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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists