avm1: Fix compile error when using avm_debug flag

This commit is contained in:
Nathan Adams 2020-07-21 12:44:51 +02:00 committed by Mike Welsh
parent d5deeee1b7
commit 0e0be34e17
1 changed files with 1 additions and 1 deletions

View File

@ -2349,7 +2349,7 @@ impl<'a, 'gc: 'a> Activation<'a, 'gc> {
"Thrown exception: {}",
value
.coerce_to_string(self, context)
.unwrap_or_else(|_| Cow::Borrowed("undefined"))
.unwrap_or_else(|_| "undefined".into())
);
Err(Error::ThrownValue(value))
}