Ignore:
Timestamp:
Jun 16, 2014, 9:40:56 AM (11 years ago)
Author:
[email protected]
Message:

Convert ASSERT in inlineFunctionForCapabilityLevel to early return
https://bugs.webkit.org/show_bug.cgi?id=133903

Reviewed by Mark Hahnenberg.

Hardened code by Converting ASSERT to return CannotCompile.

  • dfg/DFGCapabilities.h:

(JSC::DFG::inlineFunctionForCapabilityLevel):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGCapabilities.h

    r168178 r170011  
    150150{
    151151    if (isClosureCall) {
    152         ASSERT(kind == CodeForCall);
     152        if (kind != CodeForCall)
     153            return CannotCompile;
    153154        return inlineFunctionForClosureCallCapabilityLevel(codeBlock);
    154155    }
Note: See TracChangeset for help on using the changeset viewer.