Skip to content
This repository
Browse code

Added expectation for 'for ... from' loop with complex value is the s…

…ubject of iteration
  • Loading branch information...
commit 87b4431b16e7b58ae1c69c20e5400d80320a7ee4 1 parent 9afa3e3
Paul Harper benekastah authored

Showing 2 changed files with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. BIN  .DS_Store
  2. +10 0 expectations/extend_for
BIN  .DS_Store
Binary file not shown
10 expectations/extend_for
@@ -117,3 +117,13 @@ to:
117 117 var i, x; for (i in a) {if (!a.hasOwnProperty(i)) continue; x = a[i];
118 118 fn()
119 119 }
  120 +
  121 +compiles:
  122 +for (i, x from a()) {
  123 + fn()
  124 +}
  125 +
  126 +to:
  127 +var _xpr, i, x; for (i in (_xpr=a())) {if (!_xpr.hasOwnProperty(i)) continue; x = _xpr[i];
  128 + fn()
  129 +}

0 comments on commit 87b4431

Please sign in to comment.
Something went wrong with that request. Please try again.