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

Support JavaScript private methods and properties

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            lobzek Lobzek

            Dates

              Created:
              Updated:

              Slack

                Issue deployment