avm2: Support Error 1089
This commit is contained in:
parent
613c21a5d2
commit
6eddd3532e
|
@ -200,6 +200,20 @@ pub fn make_error_1087<'gc>(activation: &mut Activation<'_, 'gc>) -> Error<'gc>
|
|||
}
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
#[cold]
|
||||
pub fn make_error_1089<'gc>(activation: &mut Activation<'_, 'gc>) -> Error<'gc> {
|
||||
let err = type_error(
|
||||
activation,
|
||||
"Error #1089: Assignment to lists with more than one item is not supported.",
|
||||
1089,
|
||||
);
|
||||
match err {
|
||||
Ok(err) => Error::AvmError(err),
|
||||
Err(err) => err,
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
#[cold]
|
||||
pub fn make_error_1118<'gc>(activation: &mut Activation<'_, 'gc>) -> Error<'gc> {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use crate::avm2::activation::Activation;
|
||||
use crate::avm2::e4x::{E4XNode, E4XNodeKind};
|
||||
use crate::avm2::error::make_error_1089;
|
||||
use crate::avm2::object::script_object::ScriptObjectData;
|
||||
use crate::avm2::object::{Object, ObjectPtr, TObject};
|
||||
use crate::avm2::value::Value;
|
||||
|
@ -417,7 +418,7 @@ impl<'gc> TObject<'gc> for XmlListObject<'gc> {
|
|||
}
|
||||
|
||||
// 4. Return
|
||||
Ok(())
|
||||
Err(make_error_1089(activation))
|
||||
}
|
||||
|
||||
fn get_next_enumerant(
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
num_ticks = 1
|
||||
known_failure = true
|
||||
|
|
Loading…
Reference in New Issue