avm2: Event phase should be counted from 1 in `valueOf`.
This commit is contained in:
parent
c4a5c6f4d3
commit
76ef0d4740
|
@ -108,10 +108,7 @@ impl<'gc> TObject<'gc> for EventObject<'gc> {
|
||||||
mc,
|
mc,
|
||||||
format!(
|
format!(
|
||||||
"[Event type=\"{}\" bubbles={} cancelable={} eventPhase={}]",
|
"[Event type=\"{}\" bubbles={} cancelable={} eventPhase={}]",
|
||||||
event_type,
|
event_type, bubbles, cancelable, phase
|
||||||
bubbles,
|
|
||||||
cancelable,
|
|
||||||
phase - 1
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.into())
|
.into())
|
||||||
|
|
Loading…
Reference in New Issue