Open new handle scope when deep copying.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 Sep 2013 12:28:35 +0000 (12:28 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 Sep 2013 12:28:35 +0000 (12:28 +0000)
R=mstarzinger@chromium.org
BUG=292903

Review URL: https://codereview.chromium.org/24201002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16769 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/objects.cc

index 316b5839f4443c6e6122c5f1a875e39905d135be..b3a264e79831963d91b91818db9634ef4400244a 100644 (file)
@@ -5635,6 +5635,8 @@ Handle<JSObject> JSObject::DeepCopy(Handle<JSObject> object) {
 
   Handle<JSObject> copy = Copy(object);
 
+  HandleScope scope(isolate);
+
   // Deep copy local properties.
   if (copy->HasFastProperties()) {
     Handle<DescriptorArray> descriptors(copy->map()->instance_descriptors());