Skip to content

Commit f2ceadd

Browse files
Invalidate InstInline cache
1 parent 0cfe82d commit f2ceadd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Runtime/Library/JavascriptObject.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ BOOL JavascriptObject::ChangePrototype(RecyclableObject* object, RecyclableObjec
245245
isInvalidationOfInlineCacheNeeded = false;
246246
}
247247

248+
// Invalidate the "instanceof" cache
249+
scriptContext->GetThreadContext()->InvalidateAllIsInstInlineCaches();
250+
248251
if (isInvalidationOfInlineCacheNeeded)
249252
{
250253
bool allProtoCachesInvalidated = false;

0 commit comments

Comments
 (0)