Ignore:
Timestamp:
May 15, 2012, 5:21:00 PM (13 years ago)
Author:
[email protected]
Message:

Make error information available even if all we have is line number information.
https://bugs.webkit.org/show_bug.cgi?id=86547

Reviewed by Filip Pizlo.

We don't need expression information to generate useful line, file, and stack information,
so only require that we have line number info available.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::throwException):

  • runtime/Executable.h:

(JSC):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r116673 r117193  
    10241024            appendSourceToError(callFrame, static_cast<ErrorInstance*>(exception), bytecodeOffset);
    10251025
    1026         // Using hasExpressionInfo to imply we are interested in rich exception info.
    1027         if (codeBlock->hasExpressionInfo() && !hasErrorInfo(callFrame, exception)) {
    1028             ASSERT(codeBlock->hasLineInfo());
     1026        if (codeBlock->hasLineInfo() && !hasErrorInfo(callFrame, exception)) {
    10291027            // FIXME: should only really be adding these properties to VM generated exceptions,
    10301028            // but the inspector currently requires these for all thrown objects.
Note: See TracChangeset for help on using the changeset viewer.