@@ -6136,7 +6136,7 @@ namespace Js
6136
6136
{
6137
6137
Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
6138
6138
6139
- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6139
+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
6140
6140
DynamicType* type = CreateDeferredPrototypeFunctionType (entryPoint);
6141
6141
6142
6142
return RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseReactionTaskFunction, type, functionInfo, reaction, argument);
@@ -6146,7 +6146,7 @@ namespace Js
6146
6146
{
6147
6147
Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
6148
6148
6149
- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6149
+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
6150
6150
DynamicType* type = CreateDeferredPrototypeFunctionType (entryPoint);
6151
6151
6152
6152
return RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseResolveThenableTaskFunction, type, functionInfo, promise, thenable, thenFunction);
@@ -6169,7 +6169,7 @@ namespace Js
6169
6169
{
6170
6170
Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
6171
6171
6172
- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6172
+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
6173
6173
DynamicType* type = DynamicType::New (scriptContext, TypeIds_Function, functionPrototype, entryPoint, GetDeferredAnonymousFunctionTypeHandler ());
6174
6174
6175
6175
JavascriptPromiseThenFinallyFunction* function = RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseThenFinallyFunction, type, functionInfo, OnFinally, Constructor, shouldThrow);
@@ -6182,7 +6182,7 @@ namespace Js
6182
6182
{
6183
6183
Assert (scriptContext->GetConfig ()->IsES6PromiseEnabled ());
6184
6184
6185
- FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint);
6185
+ FunctionInfo* functionInfo = RecyclerNew (this ->GetRecycler (), FunctionInfo, entryPoint, FunctionInfo::Attributes::ErrorOnNew );
6186
6186
DynamicType* type = CreateDeferredPrototypeFunctionType (entryPoint);
6187
6187
6188
6188
return RecyclerNewEnumClass (this ->GetRecycler (), EnumFunctionClass, JavascriptPromiseThunkFinallyFunction, type, functionInfo, value, shouldThrow);
0 commit comments