Ticket #2528020 (closed defect)

Reporter


Bernard
Opened: 01/21/10
Last modified: 12/12/12
Status: closed
Type: defect
Resolution: wontfix

Owner


Adam Moore
Target Release:
Priority:
Summary: Semicolon overflows to after Function Body
Description:

The aim in this case is to compress away the semicolons while keeping statements on separate lines.

Parameters:

--type js --line-break 0

Works fine, no errors or crashes, but JavaScript editors complain that the code has no side effects.

The issue is that a semicolon is added after the function body. Could it be removed?

Type: defect Observed in Version: 2.4.2
Component: YUICompressor Severity: S3 (normal)
Assigned To: Adam Moore Target Release:
Location: Priority:
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Parameters:

--type js --line-break 0

Input:

function test(){
var localVar = 3;
}

Output:

function test(){var a=3
};

Change History

George

YUI Developer

Posted: 01/30/10

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from assigned to closed

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.