mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix #9508: Beautify our union enums constructors
This commit is contained in:
parent
7c249b1d53
commit
2be49404be
13 changed files with 69 additions and 71 deletions
|
@ -127,7 +127,7 @@ impl EventListenerType {
|
|||
let cx = global.r().get_cx();
|
||||
let error = RootedValue::new(cx, event.Error(cx));
|
||||
let _ = handler.Call_(object,
|
||||
EventOrString::eString(event.Message()),
|
||||
EventOrString::String(event.Message()),
|
||||
Some(event.Filename()),
|
||||
Some(event.Lineno()),
|
||||
Some(event.Colno()),
|
||||
|
@ -136,7 +136,7 @@ impl EventListenerType {
|
|||
return;
|
||||
}
|
||||
|
||||
let _ = handler.Call_(object, EventOrString::eEvent(Root::from_ref(event)),
|
||||
let _ = handler.Call_(object, EventOrString::Event(Root::from_ref(event)),
|
||||
None, None, None, None, exception_handle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue