This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262415

Summary: Missing semicolons should not give warning in ES6. This also cause an error
Product: javascript Reporter: dusty <dusty>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description dusty 2016-06-13 16:36:20 UTC
Missing semicolons in ES6 sources show a warning while they now are officially optional.

This in turn creates an error if there are two import statements of this type:

import {types as tt} from "./tokentype"
import {Parser} from "./state"

The second line shows error, while if add a semicolon to the first line, the error goes away.
Comment 1 Petr Hejl 2016-06-20 09:09:36 UTC

*** This bug has been marked as a duplicate of bug 262449 ***