Bug 324673

Summary: [validation] Confusing 'Missing semicolon' warnings
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: NEW --- QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3 CC: cmjaun, paul.beusterien, sebastianzartner
Version: 3.2Keywords: plan
Target Milestone: Future   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michael Rennie CLA 2010-09-07 12:50:45 EDT
build id: 20100813105432

using the test script from bug 324671 notice that there are many 'Missing semicolon' warnings on the code pattern like the following:

  name: function()
  {

  }

If I edit the code to look like:

  name: function() {

  }

the warning goes away.

Example warning:

Description	Resource	Path	Location	Type
Missing semicolon	firebug-service.js	/firefox.eclipseweb/firebug1.6/modules	line 214	JavaScript Problem
Comment 1 Sebastian Zartner CLA 2012-12-29 04:43:13 EST
This looks like the same issue as in bug 385274.
It's caused by the "const" identifiers at the beginning of the script.

Sebastian