Changeset 234580 in webkit


Ignore:
Timestamp:
Aug 4, 2018 1:07:13 PM (6 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r208953): TemplateObjectDescriptor constructor calculates m_hash on use-after-move variable
<https://webkit.org/b/188331>

Reviewed by Yusuke Suzuki.

  • runtime/TemplateObjectDescriptor.h:

(JSC::TemplateObjectDescriptor::TemplateObjectDescriptor):
Use m_rawstrings instead of rawStrings to calculate hash.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r234576 r234580  
     12018-08-04  David Kilzer  <ddkilzer@apple.com>
     2
     3        REGRESSION (r208953): TemplateObjectDescriptor constructor calculates m_hash on use-after-move variable
     4        <https://webkit.org/b/188331>
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * runtime/TemplateObjectDescriptor.h:
     9        (JSC::TemplateObjectDescriptor::TemplateObjectDescriptor):
     10        Use `m_rawstrings` instead of `rawStrings` to calculate hash.
     11
    1122018-08-03  Saam Barati  <sbarati@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/TemplateObjectDescriptor.h

    r228422 r234580  
    8282    : m_rawStrings(WTFMove(rawStrings))
    8383    , m_cookedStrings(WTFMove(cookedStrings))
    84     , m_hash(calculateHash(rawStrings))
     84    , m_hash(calculateHash(m_rawStrings))
    8585{
    8686}
Note: See TracChangeset for help on using the changeset viewer.