From: yangguo@chromium.org Date: Tue, 17 Sep 2013 12:28:35 +0000 (+0000) Subject: Open new handle scope when deep copying. X-Git-Tag: upstream/4.7.83~12455 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=873050f171f436ac9af6d2e80e48844dc0d660b0;p=platform%2Fupstream%2Fv8.git Open new handle scope when deep copying. 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 --- diff --git a/src/objects.cc b/src/objects.cc index 316b5839f..b3a264e79 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -5635,6 +5635,8 @@ Handle JSObject::DeepCopy(Handle object) { Handle copy = Copy(object); + HandleScope scope(isolate); + // Deep copy local properties. if (copy->HasFastProperties()) { Handle descriptors(copy->map()->instance_descriptors());