ソースを参照

Fix unnecessary string cmp with PropertyRecord/Equal

Oguz Bastemur 8 年 前
コミット
d5ddda6bcc
1 ファイル変更1 行追加2 行削除
  1. 1 2
      lib/Runtime/Base/PropertyRecord.h

+ 1 - 2
lib/Runtime/Base/PropertyRecord.h

@@ -169,8 +169,7 @@ namespace Js
     {
         inline static bool Equals(PropertyRecord const * str1, PropertyRecord const * str2)
         {
-            return (str1->GetLength() == str2->GetLength() &&
-                JsUtil::CharacterBuffer<WCHAR>::StaticEquals(str1->GetBuffer(), str2->GetBuffer(), str1->GetLength()));
+            return str1->GetPropertyId() == str2->GetPropertyId();
         }
 
         inline static bool Equals(PropertyRecord const * str1, JsUtil::CharacterBuffer<WCHAR> const * str2)