mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +00:00
Typos
This commit is contained in:
1 parent
0dcc645f22
commit
31afae71d1
1 file changed
+2
-2
@@ -1675,7 +1675,7 @@ ClassDeclarationStatement: function(node, st, c) {
|
||||
compiler.classBodyBuffer = new StringBuffer(); // TODO: Check if this is needed
|
||||
|
||||
if (compiler.getTypeDef(className))
|
||||
throw compiler.error_message(className + " is already declared as type", node.classname);
|
||||
throw compiler.error_message(className + " is already declared as a type", node.classname);
|
||||
|
||||
if (!generate) saveJSBuffer.concat(compiler.source.substring(compiler.lastPos, node.start));
|
||||
|
||||
@@ -2414,7 +2414,7 @@ ClassStatement: function(node, st, c) {
|
||||
var className = node.id.name;
|
||||
|
||||
if (compiler.getTypeDef(className))
|
||||
throw compiler.error_message(className + " is already declared as type", node.id);
|
||||
throw compiler.error_message(className + " is already declared as a type", node.id);
|
||||
|
||||
if (!compiler.getClassDef(className)) {
|
||||
classDef = new ClassDef(false, className);
|
||||
|
||||
Reference in new issue
Block a user