[webkit-dev] Question about Constructors in WebKit JS Bindings

Adam Barth abarth at webkit.org
Tue Jun 23 11:50:45 PDT 2009


On Tue, Jun 23, 2009 at 10:44 AM, Darin Adler<darin at apple.com> wrote:
> Perhaps it's possible to write a test that both checks which global object
> is used for every constructor, and checks that the test covers all
> constructors at the same time. Maybe there is a practical way to iterate the
> constructors, as long as we create an exception list of objects that look
> like constructors but are not.
>
> Tests are the bests.

I'd be happy to write this test.  Is there a good way to tell if
something is a constructor versus a function?  I guess we can try
calling all the global functions as constructors and see what happens.

Adam


More information about the webkit-dev mailing list