summaryrefslogtreecommitdiffstats
path: root/js/src/js.msg
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-30 00:46:07 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-30 00:46:07 +0100
commitd88f471cbcf9f6c8682b6a0c152622b66708ac5b (patch)
tree69fc7c4c11a26dff3f813fd13b5205fb3b765e11 /js/src/js.msg
parent6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a (diff)
downloadUXP-d88f471cbcf9f6c8682b6a0c152622b66708ac5b.tar
UXP-d88f471cbcf9f6c8682b6a0c152622b66708ac5b.tar.gz
UXP-d88f471cbcf9f6c8682b6a0c152622b66708ac5b.tar.lz
UXP-d88f471cbcf9f6c8682b6a0c152622b66708ac5b.tar.xz
UXP-d88f471cbcf9f6c8682b6a0c152622b66708ac5b.zip
Issue #1302 followup - Add spec-compliance checks/errors
- Check for undefined/null regex flags (because...) - Make it throw a typeerror instead of syntax error on non-global - Generalize JS error messages for these checks.
Diffstat (limited to 'js/src/js.msg')
-rw-r--r--js/src/js.msg2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/js.msg b/js/src/js.msg
index 1612c831d..e2d923bc4 100644
--- a/js/src/js.msg
+++ b/js/src/js.msg
@@ -132,6 +132,8 @@ MSG_DEF(JSMSG_INVALID_NORMALIZE_FORM, 0, JSEXN_RANGEERR, "form must be one of '
MSG_DEF(JSMSG_NEGATIVE_REPETITION_COUNT, 0, JSEXN_RANGEERR, "repeat count must be non-negative")
MSG_DEF(JSMSG_NOT_A_CODEPOINT, 1, JSEXN_RANGEERR, "{0} is not a valid code point")
MSG_DEF(JSMSG_RESULTING_STRING_TOO_LARGE, 0, JSEXN_RANGEERR, "repeat count must be less than infinity and not overflow maximum string size")
+MSG_DEF(JSMSG_FLAGS_UNDEFINED_OR_NULL, 0, JSEXN_TYPEERR, "'flags' property must neither be undefined nor null")
+MSG_DEF(JSMSG_REQUIRES_GLOBAL_REGEXP, 1, JSEXN_TYPEERR, "{0} must be called with a global RegExp")
// Number
MSG_DEF(JSMSG_BAD_RADIX, 0, JSEXN_RANGEERR, "radix must be an integer at least 2 and no greater than 36")