-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=40118 Patch by Anthony Scian <ascian@rim.com> on 2012-06-27 Reviewed by Yong Li. Source/JavaScriptCore: Added member functions to expose function name, urlString, and line #. Refactored toString to make use of these member functions to reduce duplicated code for future maintenance. Manually tested refactoring of toString by tracing thrown exceptions. * interpreter/Interpreter.h: (StackFrame): (JSC::StackFrame::toString): (JSC::StackFrame::friendlySourceURL): (JSC::StackFrame::friendlyFunctionName): (JSC::StackFrame::friendlyLineNumber): Source/WebCore: Implemented stub for createScriptCallStack to call into Interpreter and extract the current stack frames, iterate through the frames and create the return result required. No new tests, manually tested thrown exception and inspector tracebacks. * bindings/js/ScriptCallStackFactory.cpp: (WebCore::createScriptCallStack): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
50c978a0