12011-08-18 Kentaro Hara <haraken@google.com>
2
3 A Worker constructor should throw TypeError, when the number of arguments is not enough
4 https://bugs.webkit.org/show_bug.cgi?id=66456
5
6 Reviewed by NOBODY (OOPS!).
7
8 Spec is here: http://www.w3.org/TR/WebIDL/#es-operations.
9
10 Test: fast/workers/worker-constructor.html
11
12 * bindings/js/JSWorkerCustom.cpp:
13 (WebCore::JSWorkerConstructor::constructJSWorker): Changed SyntaxError to TypeError.
14 * bindings/v8/custom/V8WorkerCustom.cpp:
15 (WebCore::V8Worker::constructorCallback): Changed SyntaxError to TypeError.
16