Fix missing throw in Preprocessor to report an error on unmatched brackets. Closes gh-524

This commit is contained in:
Paul Baumgart authored and Ross Boucher committed 2010-03-05 12:34:57 -08:00
1 parent 50b5c21fcf
commit ab196e75c1
1 file changed
+1 -1
+1 -1
View File
@@ -855,7 +855,7 @@ Preprocessor.prototype.preprocess = function(tokens, /*StringBuffer*/ aStringBuf
// If we get this far and we're parsing an objj_msgSend (or array), then we have a problem.
if (tuple)
new SyntaxError(this.error_message("*** Expected ']' - Unterminated message send or array."));
throw new SyntaxError(this.error_message("*** Expected ']' - Unterminated message send or array."));
if (!aStringBuffer)
return buffer;