This is a test for bug 22710.
Created attachment 25833 [details] proposed patch
Tests that use GCController.getJSObjectCount() break when running "run-webkit-tests --threaded", so I'm not sure if they are a gain or a loss. Perhaps we should remove the --threaded option altogether, now that multithreading is tested in fast/workers?
Now that I think about it more, GCController.getJSObjectCount() will work fine in all tests when I land my patch that makes JSCreateGlobalObject use a unique context group.
Comment on attachment 25833 [details] proposed patch Test looks good, r=me There is a typo in a comment: "shoudl".
Created attachment 25847 [details] Same test, fixed the typo Fixed the typo.
Committed revision 39131.