Uglify 1 js parser chokes on setting object properties inline seperated by commas.

28 views
Skip to first unread message

Will Blackamoor

unread,
Dec 9, 2015, 4:08:13 AM12/9/15
to UglifyJS
fails:

window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: ''),
window
.ctrl = {},
window
.svc = {},
window
.models = {};



pass:

window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
window
.ctrl = {};
window
.svc = {};
window
.models = {};




Reply all
Reply to author
Forward
0 new messages