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

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

Issue 704183002: Fix for an assertion failure in Map::FindTransitionToField(...). Appeared after r25136. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/objects-inl.h ('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-430846.js
diff --git a/test/mjsunit/regress/regress-3392.js b/test/mjsunit/regress/regress-crbug-430846.js
similarity index 53%
copy from test/mjsunit/regress/regress-3392.js
copy to test/mjsunit/regress/regress-crbug-430846.js
index 375f30210ce11272799c78b51463d97fc6b65998..3047c7fc34202b42f71ee78cd19d6ade0df62349 100644
--- a/test/mjsunit/regress/regress-3392.js
+++ b/test/mjsunit/regress/regress-crbug-430846.js
@@ -4,15 +4,11 @@
// Flags: --allow-natives-syntax
-function foo() {
- var a = {b: -1.5};
- for (var i = 0; i < 1; i++) {
- a.b = 1;
- }
- assertTrue(0 <= a.b);
-}
+function foo() { return 1; };
+var o1 = {};
+o1.foo = foo;
-foo();
-foo();
-%OptimizeFunctionOnNextCall(foo);
-foo();
+var json = '{"foo": {"x": 1}}';
+var o2 = JSON.parse(json);
+var o3 = JSON.parse(json);
+assertTrue(%HaveSameMap(o2, o3));
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698