MCPcopy Create free account
hub / github.com/dop251/goja / TestArrayAssignPatternElision

Function TestArrayAssignPatternElision

compiler_test.go:4144–4151  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

4142}
4143
4144func TestArrayAssignPatternElision(t *testing.T) {
4145 const SCRIPT = `
4146 let a, b;
4147 ([a,, b] = [1, 4, 2]);
4148 a === 1 && b === 2;
4149 `
4150 testScript(SCRIPT, valueTrue, t)
4151}
4152
4153func TestArrayAssignPatternRestPattern(t *testing.T) {
4154 const SCRIPT = `

Callers

nothing calls this directly

Calls 1

testScriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…