Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove JS::root. #8251
Closed
Remove JS::root. #8251
Comments
|
I will take this one |
|
Please do! |
nxnfufunezn
added a commit
to nxnfufunezn/servo
that referenced
this issue
Oct 30, 2015
Fixes servo#8251
Merged
bors-servo
added a commit
that referenced
this issue
Oct 31, 2015
Removed JS::root #8251 Fixes #8251 r? @Ms2ger <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8262) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The method is defined in
components/script/dom/bindings/js.rs.It should be possible to remove most calls altogether, and use the
JS<T>where theRoot<T>return value is currently used. When that isn't possible,Root::from_ref(&*js)should work.