Check type compatibility when coercing RootedVar to Handle, bug 745361. r=luke

This commit is contained in:
Brian Hackett 2012-04-15 21:19:44 -07:00
parent b6e8036e56
commit 1e885365ff

View File

@ -334,6 +334,7 @@ template <typename T> template <typename S>
inline
Handle<T>::Handle(const RootedVar<S> &root)
{
testAssign<S>();
ptr = reinterpret_cast<const T *>(root.address());
}