[V8] Add "stack" property to DOMException
authorarv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2012 23:54:49 +0000 (23:54 +0000)
committerarv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2012 23:54:49 +0000 (23:54 +0000)
commitd994ba6652ee5c67b68fb5ebbba36205c52e5e31
tree662bde90a2ad09064a8b9163d857c5fa0b3d31a8
parent907b41442b13b89d9c0029f5c73f3695f5719dbf
[V8] Add "stack" property to DOMException
https://bugs.webkit.org/show_bug.cgi?id=85057

Reviewed by Kentaro Hara.

When we create a DOM exception we define a V8 accessor for the stack property. This
accessor uses a new Error object to get the underlying stack string.

Source/WebCore:

Test: fast/dom/DOMException/stack-trace.html

* bindings/v8/V8Proxy.cpp:
(WebCore::DOMExceptionStackGetter):
(WebCore):
(WebCore::DOMExceptionStackSetter):
(WebCore::V8Proxy::setDOMException):

LayoutTests:

* fast/dom/DOMException/stack-trace-expected.txt: Added.
* fast/dom/DOMException/stack-trace.html: Added.
* platform/chromium/fast/dom/DOMException/stack-trace-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/DOMException/stack-trace-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/DOMException/stack-trace.html [new file with mode: 0644]
LayoutTests/platform/chromium/fast/dom/DOMException/stack-trace-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/V8Proxy.cpp