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;
866866 }
867867 else
868868 {
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
870874 }
871875
872876 // 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
21432143 // args.Values[0] will be null in the case where NewTarget is initially provided by proxy.
21442144 if (!isCtorSuperCall || !args.Values [0 ])
21452145 {
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
21472151 args.Values [0 ] = newThisObject;
21482152 }
21492153 else
You can’t perform that action at this time.
0 commit comments