str = String(str);
var ch = str.charAt(0);
if (might_need_semicolon) {
- if (";}".indexOf(ch) < 0 && !/[;]$/.test(last)) {
+ if ((!ch || ";}".indexOf(ch) < 0) && !/[;]$/.test(last)) {
if (options.semicolons || requireSemicolonChars(ch)) {
OUTPUT += ";";
current_col++;
});
DEFPRINT(AST_Toplevel, function(self, output){
display_body(self.body, true, output);
+ output.print("");
});
DEFPRINT(AST_LabeledStatement, function(self, output){
self.label.print(output);