summaryrefslogtreecommitdiffstats
path: root/js/src/js.msg
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 23:03:08 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:39 -0400
commitdab8877c10fcc9dd5d86e6fd3d1924e474076726 (patch)
tree2a238df95fa61948b4e4a1026786a82f980969f7 /js/src/js.msg
parent8a4aeb6f58649af6e0a6d1df30b133510cbb2187 (diff)
downloadUXP-dab8877c10fcc9dd5d86e6fd3d1924e474076726.tar
UXP-dab8877c10fcc9dd5d86e6fd3d1924e474076726.tar.gz
UXP-dab8877c10fcc9dd5d86e6fd3d1924e474076726.tar.lz
UXP-dab8877c10fcc9dd5d86e6fd3d1924e474076726.tar.xz
UXP-dab8877c10fcc9dd5d86e6fd3d1924e474076726.zip
104442 - Part 1: Report the position and the kind of previous declaration for redeclaration error.
Diffstat (limited to 'js/src/js.msg')
-rw-r--r--js/src/js.msg1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/js.msg b/js/src/js.msg
index ce039cbc8..569928be8 100644
--- a/js/src/js.msg
+++ b/js/src/js.msg
@@ -63,6 +63,7 @@ MSG_DEF(JSMSG_SPREAD_TOO_LARGE, 0, JSEXN_RANGEERR, "array too large due t
MSG_DEF(JSMSG_BAD_WEAKMAP_KEY, 0, JSEXN_TYPEERR, "cannot use the given object as a weak map key")
MSG_DEF(JSMSG_BAD_GETTER_OR_SETTER, 1, JSEXN_TYPEERR, "invalid {0} usage")
MSG_DEF(JSMSG_BAD_ARRAY_LENGTH, 0, JSEXN_RANGEERR, "invalid array length")
+MSG_DEF(JSMSG_REDECLARED_PREV, 2, JSEXN_NOTE, "Previously declared at line {0}, column {1}")
MSG_DEF(JSMSG_REDECLARED_VAR, 2, JSEXN_SYNTAXERR, "redeclaration of {0} {1}")
MSG_DEF(JSMSG_UNDECLARED_VAR, 1, JSEXN_REFERENCEERR, "assignment to undeclared variable {0}")
MSG_DEF(JSMSG_GETTER_ONLY, 1, JSEXN_TYPEERR, "setting getter-only property {0}")