Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#140 closed defect (wontfix)

Compressor doesn't handle variable replacement for eval() method

Reported by: [email protected] Owned by: anonymous
Priority: high Milestone:
Component: BuildTools Version: 0.1
Keywords: Cc:
Blocked By: Blocking:


For example, if you have:

function doTest(varName, typeNode){eval(""+varName+"("+"varName"+","+"typeNode"+")");}

It get compressed to:

function doTest(_1,_2){eval(""+_1+"("+"varName"+","+"typeNode"+")");}

This should be:

function doTest(_1,_2){eval(""+_1+"("+"_1"+","+"_2"+")");}

Change History (2)

comment:1 Changed 16 years ago by alex

Milestone: 0.3release
Resolution: wontfix
Status: newclosed

PHD's have lost their minds over this problem. We can't analyze enough of your tree to tell you what the value of those variables will be at runtime.

Marking wontfix.

comment:2 Changed 15 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.