From ab196e75c1bcd2af86e46aab6023f81e8dad9b8e Mon Sep 17 00:00:00 2001 From: Paul Baumgart Date: Fri, 5 Mar 2010 02:07:13 -0800 Subject: [PATCH] Fix missing throw in Preprocessor to report an error on unmatched brackets. Closes gh-524 --- Objective-J/Preprocessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/Preprocessor.js b/Objective-J/Preprocessor.js index e07ccf75a..51bcd4bae 100644 --- a/Objective-J/Preprocessor.js +++ b/Objective-J/Preprocessor.js @@ -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;