Modified: trunk/Source/_javascript_Core/ChangeLog (158016 => 158017)
--- trunk/Source/_javascript_Core/ChangeLog 2013-10-25 17:27:42 UTC (rev 158016)
+++ trunk/Source/_javascript_Core/ChangeLog 2013-10-25 17:30:38 UTC (rev 158017)
@@ -1,5 +1,11 @@
2013-10-25 Oliver Hunt <[email protected]>
+ Fix MSVC
+
+ * parser/Parser.cpp:
+
+2013-10-25 Oliver Hunt <[email protected]>
+
Improve JSC Parser error messages
https://bugs.webkit.org/show_bug.cgi?id=123341
Modified: trunk/Source/_javascript_Core/parser/Parser.cpp (158016 => 158017)
--- trunk/Source/_javascript_Core/parser/Parser.cpp 2013-10-25 17:27:42 UTC (rev 158016)
+++ trunk/Source/_javascript_Core/parser/Parser.cpp 2013-10-25 17:30:38 UTC (rev 158017)
@@ -78,13 +78,13 @@
consumeOrFail(token, "Expected '", tokenString, "' to ", operation, " a ", production);\
} while (0)
-#define semanticFailureDueToKeyword(forWhat...) do { \
+#define semanticFailureDueToKeyword(...) do { \
if (strictMode() && m_token.m_type == RESERVED_IF_STRICT) \
- semanticFail("Cannot use the reserved word '", getToken(), "' as a ", forWhat, " in strict mode"); \
+ semanticFail("Cannot use the reserved word '", getToken(), "' as a ", __VA_ARGS__, " in strict mode"); \
if (m_token.m_type == RESERVED || m_token.m_type == RESERVED_IF_STRICT) \
- semanticFail("Cannot use the reserved word '", getToken(), "' as a ", forWhat); \
+ semanticFail("Cannot use the reserved word '", getToken(), "' as a ", __VA_ARGS__); \
if (m_token.m_type & KeywordTokenFlag) \
- semanticFail("Cannot use the keyword '", getToken(), "' as a ", forWhat); \
+ semanticFail("Cannot use the keyword '", getToken(), "' as a ", __VA_ARGS__); \
} while (0)
using namespace std;