Ticket #3241 (new defect)
Shrinksafe forward reference problem
| Reported by: | guest | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | future |
| Component: | ShrinkSafe | Version: | 0.9 |
| Severity: | major | Keywords: | |
| Cc: | lu758p1w5882xyk@… |
Description (last modified by dylan) (diff)
Shrinksafe breaks this code :
function my_object(){
var a=''
this.doIt = function(){
doingIt()
}
this.getA = function(){
return a
}
var doingIt=function(){
a = 'done'
}
}
var mm=new my_object()
mm.doIt()
alert( mm.getA() )
Here is the shrinked code :
function my_object(){
var a="";
this.doIt=function(){
doingIt();
};
this.getA=function(){
return a;
};
var _2=function(){
a="done";
};
}
var mm=new my_object();
mm.doIt();
alert(mm.getA());
The probleme is that the function "doingIt()" has been renamed "_2" but the call hasn't been renamed. If I reorder "doingIt()" and "doIt()" , the probleme is solved.
Change History
Note: See
TracTickets for help on using
tickets.