-
Notifications
You must be signed in to change notification settings - Fork 117
Implement FromJSValConvertible for HandleValue #352
Conversation
6ba0700
to
d038cd5
Compare
src/conversions.rs
Outdated
value: HandleValue, | ||
_option: ()) | ||
-> Result<ConversionResult<HandleValue>, ()> { | ||
Ok(ConversionResult::Success(value)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value
may be from another context, AFAIK this would be incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add this:
unsafe {
if value.is_object() {
AssertSameCompartment(cx, value.to_object());
}
}
d038cd5
to
5b57984
Compare
Assertion added. |
Please be sure this builds :) |
bah humbug |
5b57984
to
e21cf29
Compare
'kay. |
Unnerving. Fix the warning and let's see what happens? |
e21cf29
to
bfb109e
Compare
omg, i don't know what's happening anymore, i just made a small change and rustc is so angry with me |
Could you force push again? I'd like to see if this is an instance of rust-lang/rust#41415. |
Nevermind, that's an actual assertion failure. |
Filed rust-lang/rust#41484. |
7c9ea6d
to
04e9e3a
Compare
@bors-servo: r+ |
📌 Commit 04e9e3a has been approved by |
Implement FromJSValConvertible for HandleValue <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/352) <!-- Reviewable:end -->
☀️ Test successful - status-appveyor, status-travis |
This change is