mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use specific negative assertion for DOM XMLHttpRequest
This commit is contained in:
parent
2a17230623
commit
5104d2947f
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ use time;
|
|||
use timers::{OneshotTimerCallback, OneshotTimerHandle};
|
||||
use url::Position;
|
||||
|
||||
#[derive(Clone, Copy, JSTraceable, MallocSizeOf, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, JSTraceable, MallocSizeOf, PartialEq)]
|
||||
enum XMLHttpRequestState {
|
||||
Unsent = 0,
|
||||
Opened = 1,
|
||||
|
@ -849,7 +849,7 @@ pub type TrustedXHRAddress = Trusted<XMLHttpRequest>;
|
|||
|
||||
impl XMLHttpRequest {
|
||||
fn change_ready_state(&self, rs: XMLHttpRequestState) {
|
||||
assert!(self.ready_state.get() != rs);
|
||||
assert_ne!(self.ready_state.get(), rs);
|
||||
self.ready_state.set(rs);
|
||||
let event = Event::new(&self.global(),
|
||||
atom!("readystatechange"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue