(t *testing.T)
| 4028 | } |
| 4029 | |
| 4030 | func TestObjectAssignPatternRest(t *testing.T) { |
| 4031 | const SCRIPT = ` |
| 4032 | let a, b, c, d; |
| 4033 | ({a, b, c, ...d} = {a: 1, b: 2, d: 4}); |
| 4034 | assert.sameValue(a, 1, "a"); |
| 4035 | assert.sameValue(b, 2, "b"); |
| 4036 | assert.sameValue(c, undefined, "c"); |
| 4037 | assert(deepEqual(d, {d: 4}), "d"); |
| 4038 | ` |
| 4039 | testScriptWithTestLibX(SCRIPT, _undefined, t) |
| 4040 | } |
| 4041 | |
| 4042 | func TestObjectBindPattern(t *testing.T) { |
| 4043 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…