[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: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/master@{#70662}
This commit is contained in:
parent
f1dfe854c4
commit
1d83f52ca9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user