Changeset 278438 in webkit
- Timestamp:
- Jun 3, 2021 5:41:01 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r278434 r278438 1 2021-06-03 Mark Lam <mark.lam@apple.com> 2 3 Fix an ASSERT in objectPrototypeHasOwnProperty() to account for TerminationException. 4 https://bugs.webkit.org/show_bug.cgi?id=226609 5 rdar://78465046 6 7 Reviewed by Robin Morisset. 8 9 * stress/termination-exception-in-objectPrototypeHasOwnProperty.js: Added. 10 1 11 2021-06-03 Yusuke Suzuki <ysuzuki@apple.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r278434 r278438 1 2021-06-03 Mark Lam <mark.lam@apple.com> 2 3 Fix an ASSERT in objectPrototypeHasOwnProperty() to account for TerminationException. 4 https://bugs.webkit.org/show_bug.cgi?id=226609 5 rdar://78465046 6 7 Reviewed by Robin Morisset. 8 9 * runtime/ObjectPrototype.cpp: 10 (JSC::objectPrototypeHasOwnProperty): 11 1 12 2021-06-03 Yusuke Suzuki <ysuzuki@apple.com> 2 13 -
trunk/Source/JavaScriptCore/runtime/ObjectPrototype.cpp
r278253 r278438 103 103 HasOwnPropertyCache* hasOwnPropertyCache = vm.ensureHasOwnPropertyCache(); 104 104 if (std::optional<bool> result = hasOwnPropertyCache->get(structure, propertyName)) { 105 ASSERT(*result == thisObject->hasOwnProperty(globalObject, propertyName));106 105 scope.assertNoExceptionExceptTermination(); 106 ASSERT(*result == thisObject->hasOwnProperty(globalObject, propertyName) || vm.hasPendingTerminationException()); 107 107 return *result; 108 108 }
Note: See TracChangeset
for help on using the changeset viewer.