Instead of having PassRef be a footgun, let's just make it deref() the pointee in ~PassRef if the object was not WTF::move()'d. This will make PassRef usable for all ::create style functions and enable idioms like Foo::create().get().doStuff();
Created attachment 242652 [details] Patch
Comment on attachment 242652 [details] Patch Seems like a good idea
Comment on attachment 242652 [details] Patch Clearing flags on attachment: 242652 Committed r176873: <http://trac.webkit.org/changeset/176873>
All reviewed patches have been landed. Closing bug.