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

Created Unassigned: Can't have 'break' outside of loop [21992]

$
0
0
I get the following error during minify:
(Minifier) Can't have 'break' outside of loop: break t
But that is possible in javascript.

Se the following example from http://www.w3schools.com/jsref/jsref_break.asp:
Using the break statement with a label reference, to "jump out" of a JavaScript code block:
var cars = ["BMW", "Volvo", "Saab", "Ford"];
var text = "";
list: {
text += cars[0] + "\n";
text += cars[1] + "\n";
text += cars[2] + "\n";
break list;
text += cars[3] + "\n";
}
The result of text will be:
BMW
Volvo
Saab

Viewing all articles
Browse latest Browse all 683

Trending Articles



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