Lobzek created NETBEANS-4592:
--------------------------------
Summary: Support JavaScript private methods and properties
Key: NETBEANS-4592
URL: https://issues.apache.org/jira/browse/NETBEANS-4592
Project: NetBeans
Issue Type: Improvement
Components: javascript - Editor
Affects Versions: 12.0
Reporter: Lobzek
It's almost [2
years|[https://github.com/tc39/notes/blob/master/meetings/2019-01/jan-30.md#private-fields-and-methods-refresher]]
since private properties and methods are added to ECMA standard. Starting
Chrome 84 we are allowed to use both natively in the browser (without Babel).
Private properties are available in Chrome even starting version 74 (released
2019-04-23).
Code example:
{code:javascript}
class A {
#privateProp = 0;
#privateMethod() {
return 0;
}
}
{code}
But in both cases we get parsing error in NetBeans.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists