avm2: Add warning comment to `handle_input_multiname`

This commit is contained in:
Lord-McSweeney 2024-09-12 22:37:50 -07:00 committed by Lord-McSweeney
parent a74d177a4a
commit 6a9f4b665a
1 changed files with 3 additions and 0 deletions

View File

@ -720,6 +720,9 @@ fn handle_input_multiname<'gc>(
) -> Multiname<'gc> {
// Special case to handle code like: xml["@attr"]
// FIXME: Figure out the exact semantics.
// NOTE: It is very important the code within the if-statement is not run
// when the passed name has the Any namespace. Otherwise, we run the risk of
// creating a NamespaceSet::Multiple with an Any namespace in it.
if !name.has_explicit_namespace()
&& !name.is_attribute()
&& !name.is_any_name()