[runtime] Fix typo in args check of %OptimizeOsr.
R=mstarzinger@chromium.org BUG= Review-Url: https://codereview.chromium.org/2134163002 Cr-Commit-Position: refs/heads/master@{#37636}
This commit is contained in:
parent
f57b0604ed
commit
18551d7a32
@ -147,7 +147,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) {
|
||||
HandleScope scope(isolate);
|
||||
|
||||
// This function is used by fuzzers, ignore calls with bogus arguments count.
|
||||
if (args.length() != 0 && args.length() == 1) {
|
||||
if (args.length() != 0 && args.length() != 1) {
|
||||
return isolate->heap()->undefined_value();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user