mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 02:11:00 +00:00
Fix missing throw in Preprocessor to report an error on unmatched brackets. Closes gh-524
This commit is contained in:
1 parent
50b5c21fcf
commit
ab196e75c1
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user