Skip to content

Commit

Permalink
Editorial: Remove unreachable branches (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike authored and bterlson committed Apr 8, 2016
1 parent 6c75bc4 commit ffaa9f5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13680,10 +13680,8 @@ <h1>Runtime Semantics: DestructuringAssignmentEvaluation</h1>
1. Let _iterator_ be ? GetIterator(_value_).
1. Let _iteratorRecord_ be Record {[[Iterator]]: _iterator_, [[Done]]: *false*}.
1. If |Elision| is present, then
1. Let _status_ be the result of performing IteratorDestructuringAssignmentEvaluation of |Elision| with _iteratorRecord_ as the argument.
1. If _status_ is an abrupt completion, then
1. If _iteratorRecord_.[[Done]] is *false*, return ? IteratorClose(_iterator_, _status_).
1. Return Completion(_status_).
1. Let _status_ be the result of performing ? IteratorDestructuringAssignmentEvaluation of |Elision| with _iteratorRecord_ as the argument.
1. NOTE: In the event of an abrupt completion, the above IteratorDestructuringAssignmentEvaluation will always set _iteratorRecord_.[[Done]] to *true*.
1. Let _result_ be the result of performing IteratorDestructuringAssignmentEvaluation of |AssignmentRestElement| with _iteratorRecord_ as the argument.
1. If _iteratorRecord_.[[Done]] is *false*, return ? IteratorClose(_iterator_, _result_).
1. Return _result_.
Expand All @@ -13705,10 +13703,8 @@ <h1>Runtime Semantics: DestructuringAssignmentEvaluation</h1>
1. If _iteratorRecord_.[[Done]] is *false*, return ? IteratorClose(_iterator_, _status_).
1. Return Completion(_status_).
1. If |Elision| is present, then
1. Let _status_ be the result of performing IteratorDestructuringAssignmentEvaluation of |Elision| with _iteratorRecord_ as the argument.
1. If _status_ is an abrupt completion, then
1. If _iteratorRecord_.[[Done]] is *false*, return ? IteratorClose(_iterator_, _status_).
1. Return Completion(_status_).
1. Let _status_ be the result of performing ? IteratorDestructuringAssignmentEvaluation of |Elision| with _iteratorRecord_ as the argument.
1. NOTE: In the event of an abrupt completion, the above IteratorDestructuringAssignmentEvaluation will always set _iteratorRecord_.[[Done]] to *true*.
1. If |AssignmentRestElement| is present, then
1. Let _status_ be the result of performing IteratorDestructuringAssignmentEvaluation of |AssignmentRestElement| with _iteratorRecord_ as the argument.
1. If _iteratorRecord_.[[Done]] is *false*, return ? IteratorClose(_iterator_, _status_).
Expand Down

0 comments on commit ffaa9f5

Please sign in to comment.