and I stumbled in this error on the transpiled code.
When transpiling the WhereEnumerable function, I get the following transpiled code and the code throws "x$__6 is not defined"
var WhereEnumerable = (function(__super) {
return function WhereEnumerable(parent, fn) {
var $__10 = $traceurRuntime.initGeneratorFunction(where);
function where(fn) {
var index,
$__0,
$__1,
undefined;
return $traceurRuntime.createGeneratorInstance(function($ctx) {
while (true)
switch ($ctx.state) {
case 0:
index = 0;
$ctx.state = 13;
break;
case 13:
$__0 = parent()[$traceurRuntime.toProperty(Symbol.iterator)]();
$ctx.state = 7;
break;
case 7:
$ctx.state = (!($__1 = $__0.next()).done) ? 8 : -2;
break;
case 8:
x$__6 = $__1.value;
$ctx.state = 9;
break;
case 9:
$ctx.state = (fn(x$__6, index)) ? 1 : 4;
break;
case 1:
$ctx.state = 2;
return x$__6;
case 2:
$ctx.maybeThrow();
$ctx.state = 4;
break;
case 4:
index++;
$ctx.state = 7;
break;
default:
return $ctx.end();
}
}, $__10, this);
}