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

Unified Diff: test/cctest/test-api.cc

Issue 12615005: Fix heap snapshot creation for Harmony collections. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/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/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 8077adf8e741bbba246a4c7db9188b24c38256d4..f6bee090816cc2e40677bba6665f0e33d9882d51 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -18257,6 +18257,19 @@ THREADED_TEST(Regress157124) {
}
+THREADED_TEST(Regress2535) {
+ i::FLAG_harmony_collections = true;
+ v8::HandleScope scope;
+ LocalContext context;
+ Local<Value> set_value = CompileRun("new Set();");
+ Local<Object> set_object(Object::Cast(*set_value));
+ CHECK_EQ(0, set_object->InternalFieldCount());
+ Local<Value> map_value = CompileRun("new Map();");
+ Local<Object> map_object(Object::Cast(*map_value));
+ CHECK_EQ(0, map_object->InternalFieldCount());
+}
+
+
#ifndef WIN32
class ThreadInterruptTest {
public:
« 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