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

Support JavaScript private methods and properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.0
    • None
    • javascript - Editor
    • None

    Description

      It's almost 2 years 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:

      class A {
      	#privateProp = 0;
      	
      	#privateMethod() {
      		return 0;
      	}
      }
      

       But in both cases we get parsing error in NetBeans.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: