Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 2d15786f89ee03af59847a8e2687d3b5ef1f412d..edb47d2559d468623fdfae7edb53d71841e3ebf1 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -5006,6 +5006,23 @@ TEST(Regress3631) { |
} |
+TEST(Regress442710) { |
+ CcTest::InitializeVM(); |
+ Isolate* isolate = CcTest::i_isolate(); |
+ Heap* heap = isolate->heap(); |
+ Factory* factory = isolate->factory(); |
+ |
+ HandleScope sc(isolate); |
+ Handle<GlobalObject> global(CcTest::i_isolate()->context()->global_object()); |
+ Handle<JSArray> array = factory->NewJSArray(2); |
+ |
+ Handle<String> name = factory->InternalizeUtf8String("testArray"); |
+ JSReceiver::SetProperty(global, name, array, SLOPPY).Check(); |
+ CompileRun("testArray[0] = 1; testArray[1] = 2; testArray.shift();"); |
+ heap->CollectGarbage(OLD_POINTER_SPACE); |
+} |
+ |
+ |
#ifdef DEBUG |
TEST(PathTracer) { |
CcTest::InitializeVM(); |