avm2: Add a fast path in coerce_s
This commit is contained in:
parent
131b2c21f4
commit
c9fedb2cf6
|
@ -1969,6 +1969,7 @@ impl<'a, 'gc> Activation<'a, 'gc> {
|
||||||
|
|
||||||
let coerced = match value {
|
let coerced = match value {
|
||||||
Value::Undefined | Value::Null => Value::Null,
|
Value::Undefined | Value::Null => Value::Null,
|
||||||
|
Value::String(_) => value,
|
||||||
_ => value.coerce_to_string(self)?.into(),
|
_ => value.coerce_to_string(self)?.into(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue