mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Use atom!("error") in EventTarget::get_compiled_event_handler
This commit is contained in:
parent
cc030df36e
commit
25ae4ed093
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ impl EventTarget {
|
||||||
b"colno\0" as *const u8 as *const c_char,
|
b"colno\0" as *const u8 as *const c_char,
|
||||||
b"error\0" as *const u8 as *const c_char];
|
b"error\0" as *const u8 as *const c_char];
|
||||||
// step 10
|
// step 10
|
||||||
let is_error = ty == &Atom::from("error") && self.is::<Window>();
|
let is_error = ty == &atom!("error") && self.is::<Window>();
|
||||||
let args = unsafe {
|
let args = unsafe {
|
||||||
if is_error {
|
if is_error {
|
||||||
&ERROR_ARG_NAMES[..]
|
&ERROR_ARG_NAMES[..]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue