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 226564 - Content of Navigator for minified file is different if file is formatted
Summary: Content of Navigator for minified file is different if file is formatted
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 20:58 UTC by Vladimir Riha
Modified: 2015-08-04 14:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-02-22 20:58:10 UTC
Please try to paste following in JS file:

(function(e){var t=window.ieShivDebug||!1, n=["ngInclude"];var r=function(e){var t=[],n=e.replace(/([A-Z])/g,function(e){return" "+e.toLowerCase()});return 1};})(window);


=> Navigator shows only

window
  |- ieShivDebug

Now if you format this code, Navigator shows more variables/functions, among other "t" and "n"

(code is simplified from AngularUI - angular-ui-ieshiv.min.js)



Product Version: NetBeans IDE Dev (Build web-main-9957-on-20130222)
Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-02-22 20:59:39 UTC
If the fix would not be too risky, I'd vote for patch.

Source file to try

https://github.com/angular-ui/angular-ui/blob/master/build/angular-ui-ieshiv.min.js
Comment 2 Vladimir Riha 2013-02-22 21:01:40 UTC
Please try the source from github, sample code in bug description is wrapped by BZ
Comment 3 Petr Pisl 2013-03-14 01:35:01 UTC
I need more time to fix this issue to put it into the first patch. It requires change in the model visitor that is not simple.
Comment 4 Petr Pisl 2015-08-04 14:37:05 UTC
The behavior is now different. The minified files are not parsed at all. I'm marking as works for me.