Changeset 214085 in webkit


Ignore:
Timestamp:
Mar 16, 2017 5:51:01 PM (7 years ago)
Author:
mark.lam@apple.com
Message:

Fix exception scope verification failures in GenericArgumentsInlines.h.
https://bugs.webkit.org/show_bug.cgi?id=165012

Reviewed by Saam Barati.

  • runtime/GenericArgumentsInlines.h:

(JSC::GenericArguments<Type>::defineOwnProperty):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r214084 r214085  
     12017-03-16  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix exception scope verification failures in GenericArgumentsInlines.h.
     4        https://bugs.webkit.org/show_bug.cgi?id=165012
     5
     6        Reviewed by Saam Barati.
     7
     8        * runtime/GenericArgumentsInlines.h:
     9        (JSC::GenericArguments<Type>::defineOwnProperty):
     10
    1112017-03-16  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/GenericArgumentsInlines.h

    r210844 r214085  
    201201    Type* thisObject = jsCast<Type*>(object);
    202202    VM& vm = exec->vm();
     203    auto scope = DECLARE_THROW_SCOPE(vm);
    203204   
    204205    if (ident == vm.propertyNames->length
     
    227228                    ASSERT(value);
    228229                    object->putDirectMayBeIndex(exec, ident, value);
    229                    
     230                    ASSERT(!scope.exception());
     231
    230232                    thisObject->setModifiedArgumentDescriptor(vm, index);
    231233                }
     
    251253
    252254    // Now just let the normal object machinery do its thing.
     255    scope.release();
    253256    return Base::defineOwnProperty(object, exec, ident, descriptor, shouldThrow);
    254257}
Note: See TracChangeset for help on using the changeset viewer.