Minifying method calls on bare Numbers fails
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
Minify commit/version: http://tweakimg.net/files/upload/jsminplus-1.4.zip
PHP version: 5.5.9-1ubuntu4.4
What steps will reproduce the problem?
<?php
require_once('jsminplus.php');
var_dump(JSMinPlus::minify('(6).toString()'));
Expected output:
string(12) "(6).toString()"
Actual output:
string(12) "6.toString()"
Note:
Actual output yields the following error in Chrome:
Error: Line 1: Unexpected token ILLEGAL
Original issue reported on code.google.com by corv...@gmail.com
on 29 Oct 2014 at 12:14
GoogleCodeExporter commented
Expected output should be:
string(14) "(6).toString()"
(not string(12))
Original comment by corv...@gmail.com
on 29 Oct 2014 at 12:15
GoogleCodeExporter commented
JSMin+ is a 3rd party library that unfortunately looks unmaintained. Author:
http://crisp.tweakblogs.net/blog/cat/716
Original comment by mrclay....@gmail.com
on 2 Dec 2014 at 7:20
- Changed state: WontFix