Fixed: Pass correct node to error message when finding duplicated protocol

This commit is contained in:
Martin Carlberg
2013-08-22 16:53:22 +02:00
parent 9f7d0578e5
commit 9eebb0a64b
+1 -1
View File
@@ -1829,7 +1829,7 @@ ProtocolDeclarationStatement: function(node, st, c) {
inheritFromProtocols = [];
if (protocolDef)
throw compiler.error_message("Duplicate protocol " + protocolName, node.protocolName);
throw compiler.error_message("Duplicate protocol " + protocolName, node.protocolname);
compiler.imBuffer = new StringBuffer();
compiler.cmBuffer = new StringBuffer();