From 6fbab322cf042649de85dd2732cfea4ab210210e Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Fri, 18 Jan 2013 14:25:05 +0100 Subject: [PATCH] Fixed warning messages in compiler --- Objective-J/ObjJAcornCompiler.js | 3 +-- Objective-J/acorn.js | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Objective-J/ObjJAcornCompiler.js b/Objective-J/ObjJAcornCompiler.js index be519d379..6f9460867 100644 --- a/Objective-J/ObjJAcornCompiler.js +++ b/Objective-J/ObjJAcornCompiler.js @@ -745,7 +745,7 @@ Identifier: function(node, st, c) { if (!reservedIdentifiers(identifier) && !st.getLvar(identifier) && typeof global[identifier] === "undefined" && !st.compiler.getClassDef(identifier)) { var message; if (st.assignment) { - message = createMessage("Creating global variable inside function or method'" + identifier + "'", node, st.compiler.source); + message = createMessage("Creating global variable inside function or method '" + identifier + "'", node, st.compiler.source); st.vars[identifier] = {type: "global", node: node}; } else message = createMessage("Using unknown class or uninitialized global variable '" + identifier + "'", node, st.compiler.source); @@ -801,7 +801,6 @@ GlobalStatement: function(node, st, c) { CONCAT(st.compiler.jsBuffer, st.compiler.source.substring(st.compiler.lastPos, node.start)); st.compiler.lastPos = node.start; CONCAT(st.compiler.jsBuffer, "//"); - print("GlobalStatement: " + node.id.name); st.rootScope().vars[node.id.name] = {type: "global", node: node.id}; } }); diff --git a/Objective-J/acorn.js b/Objective-J/acorn.js index 8fc925e1f..c23fadc75 100644 --- a/Objective-J/acorn.js +++ b/Objective-J/acorn.js @@ -1449,14 +1449,12 @@ if (!exports.acorn) { case _class: next(); node.id = parseIdent(false); - print("Class: " + node.id.name); return finishNode(node, "ClassStatement"); // This is a Objective-J statement case _global: next(); node.id = parseIdent(false); - print("Global: " + node.id.name); return finishNode(node, "GlobalStatement"); // If the statement does not start with a statement keyword or a