Throw syntax error for # followed by anything other than pragma.

This commit is contained in:
Ross Boucher
2010-04-09 14:34:02 -07:00
parent 47ecd40c4f
commit 4cc7dec35b
+1 -5
View File
@@ -386,11 +386,7 @@ Preprocessor.prototype.hash = function(tokens, aStringBuffer)
}
// if not a #pragma directive, it should not be processed here
else
{
tokens.previous();
CONCAT(aStringBuffer, TOKEN_HASH);
return;
}
throw new SyntaxError(this.error_message("*** Expected \"pragma\" to follow # but instead saw \"" + token + "\"."));
}
Preprocessor.prototype.implementation = function(tokens, /*StringBuffer*/ aStringBuffer)