avm2: Remove redundant check for Vector<undefined>

This commit is contained in:
Adrian Wielgosik 2023-07-28 23:21:31 +02:00 committed by Adrian Wielgosik
parent 30d4026227
commit b68ac23cbb
1 changed files with 0 additions and 1 deletions

View File

@ -923,7 +923,6 @@ impl<'gc> TObject<'gc> for ClassObject<'gc> {
//parameters instead of objects. We coerce them to objects now.
let object_param = match nullable_param {
Value::Null => None,
Value::Undefined => return Err("Undefined is not a valid type parameter".into()),
v => Some(v),
};
let object_param = match object_param {