Skip to content

Commit fa7c616

Browse files
committed
avm1: Change unwrap_or to expect
1 parent 69520c5 commit fa7c616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/avm1/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl<'gc> Executable<'gc> {
369369
let base_clip = if (is_closure || reason == ExecutionReason::Special) && !avm1_removed {
370370
base_clip
371371
.and_then(|d| d.as_display_object())
372-
.unwrap_or(target)
372+
.expect("Somehow the base clip isn't an object or has no display object")
373373
} else {
374374
this_obj
375375
.and_then(|this| this.as_display_object())

0 commit comments

Comments
 (0)