aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-09-02 19:38:00 +0300
committerMihai Bazon <mihai@bazon.net>2013-09-02 19:38:00 +0300
commit5d8da864c55ad6f56a7ea82dd702339df04e2d3d (patch)
tree47ec4f3a342a77be5925160c8e71854e9cf63338 /lib
parent85b527ba3d609e87b5b5f758b429ef371dc3e459 (diff)
downloadtracifyjs-5d8da864c55ad6f56a7ea82dd702339df04e2d3d.tar.gz
tracifyjs-5d8da864c55ad6f56a7ea82dd702339df04e2d3d.zip
Fix names.
Diffstat (limited to 'lib')
-rw-r--r--lib/ast.js2
-rw-r--r--lib/parse.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ast.js b/lib/ast.js
index e51cdd02..878ceb94 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -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);
diff --git a/lib/parse.js b/lib/parse.js
index 6946d93c..6a9f1ec9 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -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);
}
});