mozilla/servo — pull request #1915 by Ms2ger (2014-03-14 12:08:14+00:00)
Title: Return a JS<T> from *Binding::Wrap rather than a JSObject.

This lets us avoid the sketchy tricks in JS::new and Window::new, where we
kept an unsafe pointer to the native object across the Wrap call that
consumed the owned pointer.