Changeset 278473 in webkit


Ignore:
Timestamp:
Jun 4, 2021 10:46:09 AM (3 years ago)
Author:
mark.lam@apple.com
Message:

Placate exception checker validation in objectPrototypeHasOwnProperty.
https://bugs.webkit.org/show_bug.cgi?id=226651
rdar://78861296

Reviewed by Keith Miller.

JSTests:

  • stress/placate-exception-checker-in-objectPrototypeHasOwnProperty.js: Added.

Source/JavaScriptCore:

  • runtime/ObjectPrototype.cpp:

(JSC::objectPrototypeHasOwnProperty):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r278465 r278473  
     12021-06-04  Mark Lam  <mark.lam@apple.com>
     2
     3        Placate exception checker validation in objectPrototypeHasOwnProperty.
     4        https://bugs.webkit.org/show_bug.cgi?id=226651
     5        rdar://78861296
     6
     7        Reviewed by Keith Miller.
     8
     9        * stress/placate-exception-checker-in-objectPrototypeHasOwnProperty.js: Added.
     10
    1112021-06-03  Filip Pizlo  <fpizlo@apple.com>
    212
  • trunk/Source/JavaScriptCore/ChangeLog

    r278465 r278473  
     12021-06-04  Mark Lam  <mark.lam@apple.com>
     2
     3        Placate exception checker validation in objectPrototypeHasOwnProperty.
     4        https://bugs.webkit.org/show_bug.cgi?id=226651
     5        rdar://78861296
     6
     7        Reviewed by Keith Miller.
     8
     9        * runtime/ObjectPrototype.cpp:
     10        (JSC::objectPrototypeHasOwnProperty):
     11
    1122021-06-03  Filip Pizlo  <fpizlo@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/ObjectPrototype.cpp

    r278438 r278473  
    103103    HasOwnPropertyCache* hasOwnPropertyCache = vm.ensureHasOwnPropertyCache();
    104104    if (std::optional<bool> result = hasOwnPropertyCache->get(structure, propertyName)) {
     105        ASSERT(*result == thisObject->hasOwnProperty(globalObject, propertyName) || vm.hasPendingTerminationException());
    105106        scope.assertNoExceptionExceptTermination();
    106         ASSERT(*result == thisObject->hasOwnProperty(globalObject, propertyName) || vm.hasPendingTerminationException());
    107107        return *result;
    108108    }
Note: See TracChangeset for help on using the changeset viewer.