Ignore:
Timestamp:
Feb 23, 2016, 8:39:29 PM (9 years ago)
Author:
[email protected]
Message:

arrayProtoFuncConcat doesn't check for an exception after allocating an array
https://bugs.webkit.org/show_bug.cgi?id=154621

Reviewed by Michael Saboff.

  • runtime/ArrayPrototype.cpp:

(JSC::arrayProtoFuncConcat):

File:
1 edited

Legend:

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

    r196722 r197011  
    633633        // We add the newTarget because the compiler gets confused between 0 being a number and a pointer.
    634634        result = constructEmptyArray(exec, nullptr, 0, JSValue());
     635        if (exec->hadException())
     636            return JSValue::encode(jsUndefined());
    635637    }
    636638
Note: See TracChangeset for help on using the changeset viewer.