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.
Summary: | Functions in IIFE are not always indexed | ||
---|---|---|---|
Product: | javascript | Reporter: | Roman Svitanic <rsvitanic> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | normal | CC: | vriha |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | All | ||
See Also: | https://netbeans.org/bugzilla/show_bug.cgi?id=246444 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Roman Svitanic
2015-03-04 15:13:14 UTC
Also function which is the second argument in the following sample is NOT indexed: (function () { app.controller('DemoCtrl', function () { // This function is NOT indexed this.sample = 5; }); })(); When the same function is named, then it IS indexed: (function () { app.controller('DemoCtrl', function DemoCtrl() { // This function IS indexed this.sample = 5; }); })(); |