Skip to content

Commit b25f86d

Browse files
committed
CR feedback - call the virtual SetInternalProperty in DeferredTypeHandler::SetInternalProperty
1 parent acd5947 commit b25f86d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/Runtime/Types/DeferredTypeHandler.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,7 @@ namespace Js
329329
return TRUE;
330330
}
331331

332-
DynamicTypeHandler * typeHandler = GetCurrentTypeHandler(instance);
333-
return typeHandler->IsPathTypeHandler() ?
334-
typeHandler->SetProperty(instance, propertyId, value, flags, nullptr) :
335-
typeHandler->SetPropertyWithAttributes(instance, propertyId, value, PropertyWritable & PropertyConfigurable, nullptr, flags);
332+
return GetCurrentTypeHandler(instance)->SetInternalProperty(instance, propertyId, value, flags);
336333
}
337334

338335
template <DeferredTypeInitializer initializer, typename DeferredTypeFilter, bool isPrototypeTemplate, uint16 _inlineSlotCapacity, uint16 _offsetOfInlineSlots>

0 commit comments

Comments
 (0)