Implement an ErrorEvent constructor for V8
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 09:27:55 +0000 (09:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 09:27:55 +0000 (09:27 +0000)
commit0f5045f0cd5b65b1ebbeff9dc029caa63f788d39
tree03d50e4b03162ca230f9ae51c4def42b85eb6b2a
parentaad9dd7fd53df9f733a5e0393bcb8326266331c7
Implement an ErrorEvent constructor for V8
https://bugs.webkit.org/show_bug.cgi?id=68336

Patch by Kentaro Hara <haraken@chromium.org> on 2011-09-28
Reviewed by Adam Barth.

Source/WebCore:

Test: fast/events/constructors/error-event-constructor.html

* bindings/v8/OptionsObject.cpp:
(WebCore::OptionsObject::getKeyValue): Returns an unsigned value corresponding to a given key.
* bindings/v8/OptionsObject.h:
* bindings/v8/custom/V8EventConstructors.cpp: Added the ErrorEvent constructor.
* dom/ErrorEvent.idl: Added a 'V8CustomConstructor' attribute.

LayoutTests:

Enabled fast/events/constructors/error-event-constructor.html,
since V8 now has the constructor for ErrorEvent.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/test_expectations.txt
Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/OptionsObject.cpp
Source/WebCore/bindings/v8/OptionsObject.h
Source/WebCore/bindings/v8/custom/V8EventConstructors.cpp
Source/WebCore/dom/ErrorEvent.idl