Closed jakelang closed 5 years ago
The real simplification here could be changing find_index
to call custom_section_index_for("name")
for the NamesSection
case, adding the above change and removing names_section_index_for
.
Just realised we don't have tests for the names section.
Could have added a test checking the behaviour of dropping the names section..
According to the spec, a name section is just a custom section with the name
"name"
. Although dropsection already has a mode to drop the names section, we should still treat the names section as a custom section for spec compliance.