Ignore:
Timestamp:
May 30, 2012, 4:47:27 PM (13 years ago)
Author:
[email protected]
Message:

Really provide error information with the inspector disabled
https://bugs.webkit.org/show_bug.cgi?id=87910

Reviewed by Filip Pizlo.

Don't bother checking for anything other than pre-existing error info.
In the absence of complete line number information you'll only get the
line a function starts on, but at least it's something.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::throwException):

File:
1 edited

Legend:

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

    r118240 r118995  
    10251025            appendSourceToError(callFrame, static_cast<ErrorInstance*>(exception), bytecodeOffset);
    10261026
    1027         if (codeBlock->hasLineInfo() && !hasErrorInfo(callFrame, exception)) {
     1027        if (!hasErrorInfo(callFrame, exception)) {
    10281028            // FIXME: should only really be adding these properties to VM generated exceptions,
    10291029            // but the inspector currently requires these for all thrown objects.
Note: See TracChangeset for help on using the changeset viewer.