diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 10:31:01 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 10:31:01 +0200 |
commit | bf0d74e71daadb70a4d8551ea54603b84d817997 (patch) | |
tree | 0a27019e4ef3aaf335002ffabb8e0cdc02b19f3a /js/src/js.msg | |
parent | 237e4a6fa76626e25650adeac1b25a8b890aaebc (diff) | |
download | uxp-bf0d74e71daadb70a4d8551ea54603b84d817997.tar.gz |
Report for-loop-decl-with-initializer errors using a specified offset
instead of a node's offset.
Diffstat (limited to 'js/src/js.msg')
-rw-r--r-- | js/src/js.msg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/js.msg b/js/src/js.msg index 42a48c3a5f..a19e3aa851 100644 --- a/js/src/js.msg +++ b/js/src/js.msg @@ -262,6 +262,8 @@ MSG_DEF(JSMSG_GARBAGE_AFTER_INPUT, 2, JSEXN_SYNTAXERR, "unexpected garbage a MSG_DEF(JSMSG_IDSTART_AFTER_NUMBER, 0, JSEXN_SYNTAXERR, "identifier starts immediately after numeric literal") MSG_DEF(JSMSG_ILLEGAL_CHARACTER, 0, JSEXN_SYNTAXERR, "illegal character") MSG_DEF(JSMSG_IMPORT_DECL_AT_TOP_LEVEL, 0, JSEXN_SYNTAXERR, "import declarations may only appear at top level of a module") +MSG_DEF(JSMSG_OF_AFTER_FOR_LOOP_DECL, 0, JSEXN_SYNTAXERR, "a declaration in the head of a for-of loop can't have an initializer") +MSG_DEF(JSMSG_IN_AFTER_LEXICAL_FOR_DECL,0,JSEXN_SYNTAXERR, "a lexical declaration in the head of a for-in loop can't have an initializer") MSG_DEF(JSMSG_INVALID_FOR_IN_DECL_WITH_INIT,0,JSEXN_SYNTAXERR,"for-in loop head declarations may not have initializers") MSG_DEF(JSMSG_LABEL_NOT_FOUND, 0, JSEXN_SYNTAXERR, "label not found") MSG_DEF(JSMSG_LET_COMP_BINDING, 0, JSEXN_SYNTAXERR, "'let' is not a valid name for a comprehension variable") |