File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -866,7 +866,11 @@ using namespace Js;
866
866
}
867
867
else
868
868
{
869
- resultObject = JavascriptOperators::NewScObjectNoCtor (v, scriptContext);
869
+ BEGIN_SAFE_REENTRANT_CALL (scriptContext->GetThreadContext ())
870
+ {
871
+ resultObject = JavascriptOperators::NewScObjectNoCtor (v, scriptContext);
872
+ }
873
+ END_SAFE_REENTRANT_CALL
870
874
}
871
875
872
876
// JavascriptOperators::NewScObjectNoCtor should have thrown if 'v' is not a constructor
Original file line number Diff line number Diff line change @@ -2143,7 +2143,11 @@ namespace Js
2143
2143
// args.Values[0] will be null in the case where NewTarget is initially provided by proxy.
2144
2144
if (!isCtorSuperCall || !args.Values [0 ])
2145
2145
{
2146
- newThisObject = JavascriptOperators::NewScObjectNoCtor (targetObj, scriptContext);
2146
+ BEGIN_SAFE_REENTRANT_CALL (scriptContext->GetThreadContext ())
2147
+ {
2148
+ newThisObject = JavascriptOperators::NewScObjectNoCtor (targetObj, scriptContext);
2149
+ }
2150
+ END_SAFE_REENTRANT_CALL
2147
2151
args.Values [0 ] = newThisObject;
2148
2152
}
2149
2153
else
You can’t perform that action at this time.
0 commit comments