Skip to content

Commit 4d74acc

Browse files
committed
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.
1 parent 291ebec commit 4d74acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/Library/JavascriptArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4252,7 +4252,7 @@ namespace Js
42524252
[&](bool/*hasException*/)
42534253
{
42544254
Var top = scriptContext->PopObject();
4255-
if (JavascriptProxy::Is(thisArg))
4255+
if (isProxy)
42564256
{
42574257
AssertMsg(top == target, "Unmatched operation stack");
42584258
}

0 commit comments

Comments
 (0)