فهرست منبع

[MERGE #4484 @obastemur] swb: fix property record marking

Merge pull request #4484 from obastemur:prop_on_stack

fix the case that the swb bit wasn't being properly updated
Oguz Bastemur 8 سال پیش
والد
کامیت
e370ccc589
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      lib/Runtime/Library/ConcatString.cpp

+ 5 - 2
lib/Runtime/Library/ConcatString.cpp

@@ -165,8 +165,11 @@ namespace Js
 
         if (this->propertyRecord == nullptr && !dontLookupFromDictionary)
         {
-            scriptContext->GetOrAddPropertyRecord(this->GetSz(), static_cast<int>(this->GetLength()),
-                (Js::PropertyRecord const **)&(this->propertyRecord));
+            Js::PropertyRecord const * localPropertyRecord;
+            scriptContext->GetOrAddPropertyRecord(this->GetSz(),
+                static_cast<int>(this->GetLength()),
+                &localPropertyRecord);
+            this->propertyRecord = localPropertyRecord;
         }
 
         return this->propertyRecord;