mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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 timers::{OneshotTimerCallback, OneshotTimerHandle};
|
||||||
use url::Position;
|
use url::Position;
|
||||||
|
|
||||||
#[derive(Clone, Copy, JSTraceable, MallocSizeOf, PartialEq)]
|
#[derive(Clone, Copy, Debug, JSTraceable, MallocSizeOf, PartialEq)]
|
||||||
enum XMLHttpRequestState {
|
enum XMLHttpRequestState {
|
||||||
Unsent = 0,
|
Unsent = 0,
|
||||||
Opened = 1,
|
Opened = 1,
|
||||||
|
@ -849,7 +849,7 @@ pub type TrustedXHRAddress = Trusted<XMLHttpRequest>;
|
||||||
|
|
||||||
impl XMLHttpRequest {
|
impl XMLHttpRequest {
|
||||||
fn change_ready_state(&self, rs: XMLHttpRequestState) {
|
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);
|
self.ready_state.set(rs);
|
||||||
let event = Event::new(&self.global(),
|
let event = Event::new(&self.global(),
|
||||||
atom!("readystatechange"),
|
atom!("readystatechange"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue