Ignore:
Timestamp:
Jul 18, 2008, 6:44:24 PM (17 years ago)
Author:
[email protected]
Message:

Bug 18774: SQUIRRELFISH: print meaningful error messages <https://bugs.webkit.org/show_bug.cgi?id=18774>
<rdar://problem/5769353> SQUIRRELFISH: JavaScript error messages are missing informative text

Reviewed by Cameron Zwarich

Add support for decent error messages in JavaScript. This patch achieves this by providing
ensuring the common errors and exceptions have messages that provide the text of expression
that trigger the exception. In addition it attaches a number of properties to the exception
object detailing where in the source the expression came from.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/SourceRange.h

    r34372 r35245  
    5454            return m_sourceProvider->getRange(m_startChar, m_endChar);
    5555        }
    56 
     56       
     57        SourceProvider* sourceProvider() const { return m_sourceProvider.get(); }
     58        int startOffset() const { return m_startChar; }
    5759    private:
    5860        RefPtr<SourceProvider> m_sourceProvider;
Note: See TracChangeset for help on using the changeset viewer.