Commit 18551d7a authored by neis's avatar neis Committed by Commit bot

[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}
parent f57b0604
...@@ -147,7 +147,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) { ...@@ -147,7 +147,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) {
HandleScope scope(isolate); HandleScope scope(isolate);
// This function is used by fuzzers, ignore calls with bogus arguments count. // 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(); return isolate->heap()->undefined_value();
} }
......
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