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 268377 - ECMAScript 6 support (bug with constructors)
Summary: ECMAScript 6 support (bug with constructors)
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 13:05 UTC by murtukov
Modified: 2016-12-06 07:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code example with 3 classes (22.83 KB, image/png)
2016-10-06 13:05 UTC, murtukov
Details
Code example with 3 classes (edited) (25.00 KB, image/png)
2016-10-06 13:34 UTC, murtukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description murtukov 2016-10-06 13:05:43 UTC
Created attachment 162366 [details]
Code example with 3 classes

If you create more than one class in a single js file, the constructors of these classes are recognized incorrectly. More precisely, only the constructor of first class will be recognized correctly and all the others will be recognized as independent functions (you can see it in Navigation panel on the screenshot)
Comment 1 murtukov 2016-10-06 13:34:08 UTC
Created attachment 162367 [details]
Code example with 3 classes (edited)
Comment 2 Petr Pisl 2016-10-06 14:10:46 UTC
Reproducible
Comment 3 Petr Pisl 2016-10-06 15:56:50 UTC
Fixed in web-main.
http://hg.netbeans.org/web-main/rev/7b24045b4eb3

Thanks for reporting.
Comment 4 Quality Engineering 2016-10-07 02:45:15 UTC
Integrated into 'main-silver', will be available in build *201610070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7b24045b4eb3
User: Petr Pisl <ppisl@netbeans.org>
Log: #268377 - ECMAScript 6 support (bug with constructors)
Comment 5 Petr Pisl 2016-12-06 07:09:22 UTC
Transplanted to the releases/release82.