Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: test/mjsunit/regress/regress-crbug-642056.js

Issue 2306913002: [test] Add regression test for http://crbug.com/642056. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-642056.js
diff --git a/test/mjsunit/compiler/regress-math-sign-nan-type.js b/test/mjsunit/regress/regress-crbug-642056.js
similarity index 71%
copy from test/mjsunit/compiler/regress-math-sign-nan-type.js
copy to test/mjsunit/regress/regress-crbug-642056.js
index e16eba8c5a3b8ca48f8a055579f6f42289f40a41..ca9fc78ef61bf58a6f0affa217632ccf171b9b19 100644
--- a/test/mjsunit/compiler/regress-math-sign-nan-type.js
+++ b/test/mjsunit/regress/regress-crbug-642056.js
@@ -4,11 +4,14 @@
// Flags: --allow-natives-syntax
-function f(a) {
- return Math.sign(+a) < 2;
+function f(o) {
+ return o.x instanceof Array;
}
-f(NaN);
-f(NaN);
+var o = { x : 1.5 };
+o.x = 0;
+
+f(o);
+f(o);
%OptimizeFunctionOnNextCall(f);
-assertFalse(f(NaN));
+f(o);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698