From: mstarzinger@chromium.org Date: Mon, 11 Nov 2013 16:27:36 +0000 (+0000) Subject: Fix invalid reuse of weak global handle in GetScriptWrapper. X-Git-Tag: upstream/4.7.83~11801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5cb83f4aa223d15e56e5b93a9f502395fdcb83c;p=platform%2Fupstream%2Fv8.git Fix invalid reuse of weak global handle in GetScriptWrapper. This fixes a direct usage of a weak global handle in GetScriptWrapper that just casted it to a strong local handle, while a subsequent GC might clear it. Handlepocalypse anyone? R=machenbach@chromium.org BUG=v8:2988 TEST=mjsunit/regress/regress-2988 Review URL: https://codereview.chromium.org/67273004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17622 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/handles.cc b/src/handles.cc index 6fd047b..b86f19a 100644 --- a/src/handles.cc +++ b/src/handles.cc @@ -242,9 +242,9 @@ static void ClearWrapperCache(v8::Isolate* v8_isolate, Handle GetScriptWrapper(Handle