Commit 2be7893a authored by Shu-yu Guo's avatar Shu-yu Guo Committed by Commit Bot

[regexp] Fix matchAll error message

Forgot to pass the method name to the message template.

Bug: v8:9800
Change-Id: Id1b53b166a6908f6d906abb7a820bbf201e906fa
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1947326
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarJoshua Litt <joshualitt@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65325}
parent 5440ae25
......@@ -1569,7 +1569,8 @@ TF_BUILTIN(StringPrototypeMatchAll, StringBuiltinsAssembler) {
}
BIND(&throw_exception);
ThrowTypeError(context, MessageTemplate::kRegExpGlobalInvokedOnNonGlobal);
ThrowTypeError(context, MessageTemplate::kRegExpGlobalInvokedOnNonGlobal,
method_name);
BIND(&throw_flags_exception);
ThrowTypeError(context,
......
......@@ -269,7 +269,7 @@ namespace internal {
T(RegExpNonObject, "% getter called on non-object %") \
T(RegExpNonRegExp, "% getter called on non-RegExp object") \
T(RegExpGlobalInvokedOnNonGlobal, \
"%s called with a non-global RegExp argument") \
"% called with a non-global RegExp argument") \
T(RelativeDateTimeFormatterBadParameters, \
"Incorrect RelativeDateTimeFormatter provided") \
T(ResolverNotAFunction, "Promise resolver % is not a function") \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment