Opened 15 years ago
Closed 15 years ago
#4692 closed Bug (fixed)
CKPackager remove mandatory parenthsis
Reported by: | Garry Yao | Owned by: | Frederico Caldeira Knabben |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Project : CKPackager | Version: | |
Keywords: | Confirmed Review+ | Cc: |
Description
For the following codes
array.splice( ( length--, i-- ), 1 );
CKPackager will output into:
array.splice( length--, i--, 1 );
Attachments (3)
Change History (10)
Changed 15 years ago by
Attachment: | 4692.patch added |
---|
comment:1 Changed 15 years ago by
Keywords: | Review? added |
---|---|
Owner: | set to Garry Yao |
Status: | new → assigned |
comment:2 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|---|
Owner: | changed from Garry Yao to Frederico Caldeira Knabben |
Status: | assigned → new |
Changed 15 years ago by
Attachment: | 4692_2.patch added |
---|
comment:3 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|---|
Status: | new → assigned |
comment:4 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
I'm not sure if we'll ever use such code, but there is a code that is not compressed properly:
var a=(1,2,3,4);
it is changed into
var a=1,2,3,4;
Changed 15 years ago by
Attachment: | 4692_3.patch added |
---|
comment:5 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
These issues where not really related to the previous patch, but they needed to be fixed also. The new patch contemplates it.
comment:6 Changed 15 years ago by
Keywords: | Review+ added; Review? removed |
---|
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I think this issue can be handled in a different way. The patch actually forces parenthesis even when not needed. I'm already coding something for it.