From 4d74acc6f18ab590ba26c361917890a4101335e9 Mon Sep 17 00:00:00 2001 From: Kunal Pathak Date: Fri, 9 Sep 2016 11:49:08 -0700 Subject: [PATCH] Bug fix when proxy is from different context We set `target` only if proxy is from same context, but while asserting we were not taking cross-context into account. --- lib/Runtime/Library/JavascriptArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Runtime/Library/JavascriptArray.cpp b/lib/Runtime/Library/JavascriptArray.cpp index 640618513e7..5cf0818493e 100644 --- a/lib/Runtime/Library/JavascriptArray.cpp +++ b/lib/Runtime/Library/JavascriptArray.cpp @@ -4252,7 +4252,7 @@ namespace Js [&](bool/*hasException*/) { Var top = scriptContext->PopObject(); - if (JavascriptProxy::Is(thisArg)) + if (isProxy) { AssertMsg(top == target, "Unmatched operation stack"); }