@@ -6136,7 +6136,7 @@ namespace Js
61366136 {
61376137 Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
61386138
6139- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6139+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
61406140 DynamicType* type = CreateDeferredPrototypeFunctionType (entryPoint);
61416141
61426142 return RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseReactionTaskFunction, type, functionInfo, reaction, argument);
@@ -6146,7 +6146,7 @@ namespace Js
61466146 {
61476147 Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
61486148
6149- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6149+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
61506150 DynamicType* type = CreateDeferredPrototypeFunctionType (entryPoint);
61516151
61526152 return RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseResolveThenableTaskFunction, type, functionInfo, promise, thenable, thenFunction);
@@ -6169,7 +6169,7 @@ namespace Js
61696169 {
61706170 Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
61716171
6172- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6172+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
61736173 DynamicType* type = DynamicType::New (scriptContext, TypeIds_Function, functionPrototype, entryPoint, GetDeferredAnonymousFunctionTypeHandler ());
61746174
61756175 JavascriptPromiseThenFinallyFunction* function = RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseThenFinallyFunction, type, functionInfo, OnFinally, Constructor, shouldThrow);
@@ -6182,7 +6182,7 @@ namespace Js
61826182 {
61836183 Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
61846184
6185- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6185+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
61866186 DynamicType* type = CreateDeferredPrototypeFunctionType (entryPoint);
61876187
61886188 return RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseThunkFinallyFunction, type, functionInfo, value, shouldThrow);
0 commit comments