Implement strict testing criterion for callback function definition
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 04:31:32 +0000 (04:31 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 04:31:32 +0000 (04:31 +0000)
commitbae98f8d0159544344d072db28e157095e57c2b5
treebcf1b19b94c5f95d3298ed2f94748ef153a00a14
parent18f409d5e489562edaa1e3a79733de533f7d82b4
Implement strict testing criterion for callback function definition
https://bugs.webkit.org/show_bug.cgi?id=80005

Patch by Mao Yujie <yujie.mao@intel.com> on 2012-03-22
Reviewed by Adam Barth.

Source/WebCore:

Callback function should be defined as the function type instead of
the object type.

LayoutTest: fast/dom/MediaStream/argument-types.html

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateParametersCheckExpression):
(GenerateParametersCheck):
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateParametersCheckExpression):
(GenerateParametersCheck):

LayoutTests:

Modify some tests to align with their behavior.

* fast/dom/MediaStream/argument-types-expected.txt:
* fast/dom/MediaStream/script-tests/argument-types.js:
* fast/mediastream/peerconnection-argument-types-expected.txt:
* fast/mediastream/script-tests/argument-types.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/MediaStream/argument-types-expected.txt
LayoutTests/fast/dom/MediaStream/script-tests/argument-types.js
LayoutTests/fast/mediastream/peerconnection-argument-types-expected.txt
LayoutTests/fast/mediastream/script-tests/argument-types.js
Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm