| Summary: | [validation] Use of javascript const gives "missing semicolon" in associative arrays | ||
|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Daniel Skovenborg <waldeinburg> |
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> |
| Status: | NEW --- | QA Contact: | Chris Jaun <cmjaun> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cmjaun, earlyster, joaovrb, linzuxiong1988, paul.beusterien |
| Version: | unspecified | ||
| Target Milestone: | Future | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
One way to ignore the annoying errors is that : 1.remove javascript -> validator -> errors/warning. 2.remove project -> .project file -> javascript command 3.It is important,too! delete js file and import again. I am not able to reproduce this error with VJET JS IDE[1] [1] http://eclipse.org/vjet |
Build Identifier: 20100218-1602 If a javascript file declares a const and an associative array is declared inside a function that declares a local variable, the javascript validator gives a "missing semicolon" warning on the associative array. Reproducible: Always Steps to Reproduce: 1. Create a javascript source file with the following code: const c = 0; function f() { var v; a = { k: 0 }; } 2. The validator now gives a "missing semicolon" warning on the "k: 0" line.