summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-937734.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-937734.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-937734.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-937734.js b/deps/v8/test/mjsunit/regress/regress-crbug-937734.js
index 26ab8645a6..2972956db3 100644
--- a/deps/v8/test/mjsunit/regress/regress-crbug-937734.js
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-937734.js
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --allow-natives-syntax --opt
function foo()
{
return 1 in [0];
}
+%PrepareFunctionForOptimization(foo);
foo();
foo();
%OptimizeFunctionOnNextCall(foo);
foo();
-assertEquals(0, %GetDeoptCount(foo));
+assertOptimized(foo);