Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Commented Unassigned: Method calls on number literals don't work [19760]

$
0
0
Hi,

I'm using the latest AjaxMin.dll in a project to minify some JavaScript code on-the-fly. One of my pages also contains es5-shim.js which the JSParser parses incorrectly. That's how I came accross this issue.

It turns expressions like
```
(123).toFixed(0);
```
into
```
123.toFixed(0);
```

Which throws the following error in browsers:
```
SyntaxError: identifier starts immediately after numeric literal
```

Here is es5-shim:
https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js
Comments: ** Comment from web user: Venemo **

Hi Ronlo,

Thank you very much for the fix!
I'll test it and get back to you as soon as I can.


Viewing all articles
Browse latest Browse all 683

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>