Opened 12 years ago
Closed 9 years ago
#8691 closed defect (duplicate)
Bug with non-anon function properties
Reported by: | Daniel Boelzle [:dbo] | Owned by: | Richard Backhouse |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | ShrinkSafe | Version: | 1.3.0b1 |
Keywords: | Cc: | Richard Backhouse | |
Blocked By: | Blocking: |
Description (last modified by )
shrinksaving the following code:
var foo = { bar: function bar() { // var bar = arguments.callee; // workaround bar.m; } };
results in
var foo={bar:function bar(){ _1.m; }};
Change History (12)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Description: | modified (diff) |
---|
(FYI, you should surround code samples with triple curly braces. I updated the description to do that.)
comment:3 Changed 12 years ago by
Cc: | Richard Backhouse added |
---|
comment:4 Changed 12 years ago by
Milestone: | tbd → 1.4 |
---|
1.3rc1 has been release; bumping remaining tickets to 1.4 (except for documentation/testing tickets)
comment:5 Changed 11 years ago by
Owner: | changed from alex to Richard Backhouse |
---|
comment:7 Changed 11 years ago by
Milestone: | 1.4 → 1.5 |
---|
comment:8 follow-up: 11 Changed 11 years ago by
Unfortunately I don't think fixing this one can be considered trivial to fix. I would suggest changing the milestone. I don't think I have the authority to change it.
comment:9 Changed 11 years ago by
Milestone: | 1.5 → future |
---|
comment:11 Changed 10 years ago by
Replying to rbackhouse:
Unfortunately I don't think fixing this one can be considered trivial to fix. I would suggest changing the milestone. I don't think I have the authority to change it.
Challenge accepted!
Well, I was bitten by this bug, too. I think I managed to solve it; see attachment:ticket:11673:shrinksafe.named_functions.patch on #11673.
Posting the code snippet again since trac seems to have swallowed some linefeed:
var foo = {
};