Skip to content

Commit

Permalink
[1.8>1.9] Merged PR 104340: TypedArray: add HasVirtualTableInfo to ch…
Browse files Browse the repository at this point in the history
…eck CrossSite

TypedArray: add HasVirtualTableInfo to check CrossSite
  • Loading branch information
obastemur committed Jan 31, 2018
2 parents ae0a7ca + 480bec0 commit a231b21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Runtime/Library/TypedArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ namespace Js
static BOOL Is(Var aValue);
static TypedArray<TypeName, clamped, virtualAllocated>* FromVar(Var aValue);
static TypedArray<TypeName, clamped, virtualAllocated>* UnsafeFromVar(Var aValue);
static BOOL HasVirtualTableInfo(Var aValue)
{
return VirtualTableInfo<TypedArray<TypeName, clamped, virtualAllocated>>::HasVirtualTable(aValue) || VirtualTableInfo<CrossSiteObject<TypedArray<TypeName, clamped, virtualAllocated>>>::HasVirtualTable(aValue);
}

inline Var BaseTypedDirectGetItem(__in uint32 index)
{
Expand Down

0 comments on commit a231b21

Please sign in to comment.