File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2105,7 +2105,7 @@ namespace Js
21052105 {
21062106 FunctionTypeWeakRefList* typeList = EnsureFunctionObjectTypeList ();
21072107
2108- Assert (functionType != deferredPrototypeType);
2108+ Assert (functionType != deferredPrototypeType && functionType != undeferredFunctionType );
21092109 Recycler * recycler = this ->GetScriptContext ()->GetRecycler ();
21102110 FunctionTypeWeakRef* weakRef = recycler->CreateWeakReferenceHandle (functionType);
21112111 typeList->SetAtFirstFreeSpot (weakRef);
Original file line number Diff line number Diff line change @@ -1088,8 +1088,10 @@ namespace Js
10881088 {
10891089 func (this ->deferredPrototypeType );
10901090 }
1091- // NOTE: We deliberately do not map the undeferredFunctionType here, since it's in the list
1092- // of registered function object types we processed above.
1091+ if (this ->undeferredFunctionType )
1092+ {
1093+ func (this ->undeferredFunctionType );
1094+ }
10931095 }
10941096
10951097 static uint GetOffsetOfDeferredPrototypeType () { return static_cast <uint>(offsetof (Js::FunctionProxy, deferredPrototypeType)); }
You can’t perform that action at this time.
0 commit comments