Closed
Description
I believe that the Expansion Algorithm's handling of nesting values in step 13.15 appears at the wrong nesting level of the algorithm, and that it should really occur after step 13 as a new step 14 (renumbering all subsequent steps). I suspect this is the case because:
- Having this step within the loop of step 13 makes it dependent on the ordering of keys that are looped over
- Having this step within the loop of step 13 can end up applying the same nesting values to the
result
over and over again (with an upper limit of the number of the number of non-keyword keys handled by the 13 loop) - Doing this allows test tn006 to pass, while following the spec does not
If this is true, the language in the (current) 13.15.2.2 about "recursively" applying step 13 probably needs to be changed, as it will no longer be recursive.