Changeset 209034 in webkit


Ignore:
Timestamp:
Nov 28, 2016 3:40:53 PM (7 years ago)
Author:
mark.lam@apple.com
Message:

Fix exception scope verification failures in JSDataView.cpp.
https://bugs.webkit.org/show_bug.cgi?id=165020

Reviewed by Saam Barati.

  • runtime/JSDataView.cpp:

(JSC::JSDataView::put):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r209032 r209034  
     12016-11-28  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix exception scope verification failures in JSDataView.cpp.
     4        https://bugs.webkit.org/show_bug.cgi?id=165020
     5
     6        Reviewed by Saam Barati.
     7
     8        * runtime/JSDataView.cpp:
     9        (JSC::JSDataView::put):
     10
    1112016-11-28  Mark Lam  <mark.lam@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/JSDataView.cpp

    r208209 r209034  
    127127    JSDataView* thisObject = jsCast<JSDataView*>(cell);
    128128
    129     if (UNLIKELY(isThisValueAltered(slot, thisObject)))
     129    if (UNLIKELY(isThisValueAltered(slot, thisObject))) {
     130        scope.release();
    130131        return ordinarySetSlow(exec, thisObject, propertyName, value, slot.thisValue(), slot.isStrictMode());
     132    }
    131133
    132134    if (propertyName == vm.propertyNames->byteLength
     
    134136        return typeError(exec, scope, slot.isStrictMode(), ASCIILiteral("Attempting to write to read-only typed array property."));
    135137
     138    scope.release();
    136139    return Base::put(thisObject, exec, propertyName, value, slot);
    137140}
Note: See TracChangeset for help on using the changeset viewer.