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

Unified Diff: test/mjsunit/harmony/weakmaps.js

Issue 7890003: Fix parent of the WeakMap prototype. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/weakmaps.js
diff --git a/test/mjsunit/harmony/weakmaps.js b/test/mjsunit/harmony/weakmaps.js
index e43f9167e641b72ca4e440d211fd85bee367e9a0..4e806cdf0ae691c96103527b512b167e4fcd1e78 100644
--- a/test/mjsunit/harmony/weakmaps.js
+++ b/test/mjsunit/harmony/weakmaps.js
@@ -157,6 +157,11 @@ var o = Object.create({}, { myValue: {
assertEquals(10, o.myValue);
+// Regression test: The parent of the WeakMap prototype is supposed to be the
rossberg 2011/09/13 09:27:37 That comment isn't quite in sync with JS terminolo
Michael Starzinger 2011/09/13 09:38:41 Done.
+// Object prototype.
+assertTrue(Object.getPrototypeOf(WeakMap.prototype) === Object.prototype)
+
+
// Stress Test
// There is a proposed stress-test available at the es-discuss mailing list
// which cannot be reasonably automated. Check it out by hand if you like:
« no previous file with comments | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698