allenwan / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Minifying method calls on bare Numbers fails #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
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 9 years ago
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