()
| 85 | actual.push("@@iterator call"); |
| 86 | return { |
| 87 | get next() { |
| 88 | actual.push("next getter"); |
| 89 | return function next(...args) { |
| 90 | assert_array_equals(args, []); |
| 91 | let j = ++i; |
| 92 | actual.push(`next call ${j}`); |
| 93 | if (j > result.length) { |
| 94 | return { |
| 95 | get done() { |
| 96 | actual.push(`done call ${j}`); |
| 97 | return true; |
| 98 | } |
| 99 | }; |
| 100 | } |
| 101 | return { |
| 102 | get done() { |
| 103 | actual.push(`done call ${j}`); |
| 104 | return false; |
| 105 | }, |
| 106 | get value() { |
| 107 | actual.push(`value call ${j}`); |
| 108 | return { |
| 109 | get valueOf() { |
| 110 | actual.push(`valueOf get ${j}`); |
| 111 | return function() { |
| 112 | actual.push(`valueOf call ${j}`); |
| 113 | return result[j - 1]; |
| 114 | }; |
| 115 | } |
| 116 | }; |
| 117 | } |
| 118 | }; |
| 119 | }; |
| 120 | } |
| 121 | }; |
| 122 | } |
| 123 | }, |
nothing calls this directly
no test coverage detected