The automatic code generation for overloaded methods recently added to CodeGeneratorJS.pm and CodeGeneratorV8.pm differs in its error reporting. CodeGeneratorJS.pm throws a TypeError when none of the overloaded methods match, while CodeGeneratorV8.pm throws a SYNTAX_ERR DOM exception. The Web IDL specification states that TypeError should be thrown; the concept of a syntax error is not even mentioned in the spec. This difference in behavior is causing fast/canvas/webgl/texImageTest-expected.txt to fail in Chromium. Currently this is the only layout test which exercises the failure case of the autogenerated overloaded method bindings.
Created attachment 58948 [details] Patch From the ChangeLog: Added V8Proxy::throwTypeError() and throwSyntaxError for parity with JSC::throwTypeError() and throwSyntaxError. Changed CodeGeneratorV8.pm to use throwTypeError for overload resolution failures. Revised CodeGeneratorJS.pm to use throwVMTypeError instead of manual call to JSValue::encode. Deleted now-unnecessary Chromium expectations for fast/canvas/webgl/texImageTest.html.
Committed r61337: <http://trac.webkit.org/changeset/61337>