(t *testing.T)
| 4218 | } |
| 4219 | |
| 4220 | func TestAssignPatternRestTrailingComma(t *testing.T) { |
| 4221 | const SCRIPT = ` |
| 4222 | ([a, b, ...rest,] = []); |
| 4223 | ` |
| 4224 | _, err := Compile("", SCRIPT, false) |
| 4225 | if err == nil { |
| 4226 | t.Fatal("Expected an error") |
| 4227 | } |
| 4228 | } |
| 4229 | |
| 4230 | func TestFuncParamInitializerSimple(t *testing.T) { |
| 4231 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…