Fix names.
authorMihai Bazon <mihai@bazon.net>
Mon, 2 Sep 2013 16:38:00 +0000 (19:38 +0300)
committerMihai Bazon <mihai@bazon.net>
Mon, 2 Sep 2013 16:38:00 +0000 (19:38 +0300)
lib/ast.js
lib/parse.js

index e51cdd0..878ceb9 100644 (file)
@@ -197,7 +197,7 @@ var AST_LabeledStatement = DEFNODE("LabeledStatement", "label", {
     }
 }, AST_StatementWithBody);
 
-var AST_IterationStatement = DEFNODE("Loop", null, {
+var AST_IterationStatement = DEFNODE("IterationStatement", null, {
     $documentation: "Internal class.  All loops inherit from it."
 }, AST_StatementWithBody);
 
index 6946d93..6a9f1ec 100644 (file)
@@ -835,7 +835,7 @@ function parse($TEXT, options) {
             label.references.forEach(function(ref){
                 if (ref instanceof AST_Continue) {
                     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);
                 }
             });