Index: src/messages.h |
diff --git a/src/messages.h b/src/messages.h |
index c090888c212b0af1635dbd0805ad4cb9e3501c78..b7ccd502ed694ef9c0ca3ea7bae088b317f79b63 100644 |
--- a/src/messages.h |
+++ b/src/messages.h |
@@ -422,6 +422,9 @@ class CallSite { |
T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ |
T(SingleFunctionLiteral, "Single function literal required") \ |
+ T(SloppyFunction, \ |
+ "In non-strict mode code, functions can only be declared at top level, " \ |
+ "inside a block, or as the body of an if statement.") \ |
T(SloppyLexical, \ |
"Block-scoped declarations (let, const, function, class) not yet " \ |
"supported outside strict mode") \ |