Commit 1d83f52c authored by Victor Gomes's avatar Victor Gomes Committed by Commit Bot

[builtins] Fix argument size DCHECK in StringPrototypeLocaleCompare

Change-Id: I8cb9f7860bb7b3cfc8ee291910c2f219309606dd
Bug: v8:10201
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2485224
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70662}
parent f1dfe854
......@@ -150,7 +150,7 @@ BUILTIN(StringPrototypeLocaleCompare) {
isolate, str1, str2, args.atOrUndefined(isolate, 2),
args.atOrUndefined(isolate, 3), method));
#else
DCHECK_EQ(2, args.length());
DCHECK_LE(2, args.length());
TO_THIS_STRING(str1, method);
Handle<String> str2;
......
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