(t *testing.T)
| 4208 | } |
| 4209 | |
| 4210 | func TestBindingPatternRestTrailingComma(t *testing.T) { |
| 4211 | const SCRIPT = ` |
| 4212 | const [a, b, ...rest,] = []; |
| 4213 | ` |
| 4214 | _, err := Compile("", SCRIPT, false) |
| 4215 | if err == nil { |
| 4216 | t.Fatal("Expected an error") |
| 4217 | } |
| 4218 | } |
| 4219 | |
| 4220 | func TestAssignPatternRestTrailingComma(t *testing.T) { |
| 4221 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…