(t *testing.T)
| 4176 | } |
| 4177 | |
| 4178 | func TestArrayBindingPatternRestPattern(t *testing.T) { |
| 4179 | const SCRIPT = ` |
| 4180 | const [a, b, ...[c, d]] = [1, 2, 3, 4]; |
| 4181 | a === 1 && b === 2 && c === 3 && d === 4; |
| 4182 | ` |
| 4183 | testScript(SCRIPT, valueTrue, t) |
| 4184 | } |
| 4185 | |
| 4186 | func TestForVarPattern(t *testing.T) { |
| 4187 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…