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

Function TestArrayAssignPattern1

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

Source from the content-addressed store, hash-verified

4124}
4125
4126func TestArrayAssignPattern1(t *testing.T) {
4127 const SCRIPT = `
4128 let a, b;
4129 ([a = 3, b = 2] = [1]);
4130 a === 1 && b === 2;
4131 `
4132 testScript(SCRIPT, valueTrue, t)
4133}
4134
4135func TestArrayAssignPatternLHS(t *testing.T) {
4136 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…