Fix names.

This commit is contained in:
Mihai Bazon
2013-09-02 19:38:00 +03:00
parent 85b527ba3d
commit 5d8da864c5
2 changed files with 2 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ var AST_LabeledStatement = DEFNODE("LabeledStatement", "label", {
} }
}, AST_StatementWithBody); }, AST_StatementWithBody);
var AST_IterationStatement = DEFNODE("Loop", null, { var AST_IterationStatement = DEFNODE("IterationStatement", null, {
$documentation: "Internal class. All loops inherit from it." $documentation: "Internal class. All loops inherit from it."
}, AST_StatementWithBody); }, AST_StatementWithBody);

View File

@@ -835,7 +835,7 @@ function parse($TEXT, options) {
label.references.forEach(function(ref){ label.references.forEach(function(ref){
if (ref instanceof AST_Continue) { if (ref instanceof AST_Continue) {
ref = ref.label.start; ref = ref.label.start;
croak("Continue label `" + label.name + "` refers to non-loop statement.", croak("Continue label `" + label.name + "` refers to non-IterationStatement.",
ref.line, ref.col, ref.pos); ref.line, ref.col, ref.pos);
} }
}); });