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

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

Issue 73903002: Merged r17772 into 3.22 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.22
Patch Set: Created 7 years, 1 month 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 | « src/version.cc ('k') | 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-318671.js
diff --git a/test/mjsunit/compiler/minus-zero.js b/test/mjsunit/regress/regress-crbug-318671.js
similarity index 92%
copy from test/mjsunit/compiler/minus-zero.js
copy to test/mjsunit/regress/regress-crbug-318671.js
index 6efceb54e36834c217732a7974f0c5d2a2cca132..54a7d5eeb6c597195dadbdf996fbd029a5b504e0 100644
--- a/test/mjsunit/compiler/minus-zero.js
+++ b/test/mjsunit/regress/regress-crbug-318671.js
@@ -27,11 +27,12 @@
// Flags: --allow-natives-syntax
-function add(x, y) {
- return x + y;
-}
+function add(x, y) { return x + y; }
+
+print(add({ a: 1 }, "a"));
+print(add({ b: 1 }, "b"));
+print(add({ c: 1 }, "c"));
-assertEquals(0, add(0, 0));
-assertEquals(0, add(0, 0));
%OptimizeFunctionOnNextCall(add);
-assertEquals(-0, add(-0, -0));
+
+print(add("a", 1));
« no previous file with comments | « src/version.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698