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: |