Our current API requires to know in advance the type and number of parameters of functions, methods and constructors. So, it's not possible to expose a function, method or constructor that can receive different amount of parameters.
Created attachment 344691 [details] Patch
Comment on attachment 344691 [details] Patch Attachment 344691 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8494726 New failing tests: http/tests/security/canvas-remote-read-remote-video-redirect.html http/tests/security/contentSecurityPolicy/video-redirect-allowed.html
Created attachment 344698 [details] Archive of layout-test-results from ews205 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews205 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment on attachment 344691 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344691&action=review > Source/JavaScriptCore/API/glib/JSCClass.cpp:645 > + * This function creates the constructor, that needs to be added to an object as a property to be able to use it. Use that -> which
Committed r233760: <https://trac.webkit.org/changeset/233760>
<rdar://problem/42104190>