Use newly introduced SetPrototype method to deal with global objects.
Created attachment 51432 [details] Patch
Comment on attachment 51432 [details] Patch I like it!
Thanks a lot, Nate.
Comment on attachment 51432 [details] Patch Clearing flags on attachment: 51432 Committed r56452: <http://trac.webkit.org/changeset/56452>
All reviewed patches have been landed. Closing bug.