Ignore:
Timestamp:
Aug 29, 2018, 6:20:20 PM (7 years ago)
Author:
[email protected]
Message:

Add some missing exception checks in JSRopeString::resolveRopeToAtomicString().
https://bugs.webkit.org/show_bug.cgi?id=189132
<rdar://problem/42513068>

Reviewed by Saam Barati.

JSTests:

  • stress/regress-189132.js: Added.

Source/JavaScriptCore:

  • runtime/JSCJSValueInlines.h:

(JSC::JSValue::toPropertyKey const):

  • runtime/JSString.cpp:

(JSC::JSRopeString::resolveRopeToAtomicString const):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSString.cpp

    r233765 r235491  
    179179void JSRopeString::resolveRopeToAtomicString(ExecState* exec) const
    180180{
     181    VM& vm = exec->vm();
     182    auto scope = DECLARE_THROW_SCOPE(vm);
     183
    181184    if (length() > maxLengthForOnStackResolve) {
    182185        resolveRope(exec);
     186        RETURN_IF_EXCEPTION(scope, void());
    183187        m_value = AtomicString(m_value);
    184188        setIs8Bit(m_value.impl()->is8Bit());
Note: See TracChangeset for help on using the changeset viewer.