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

Function TestArrayAssignPatternLHS

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

Source from the content-addressed store, hash-verified

4133}
4134
4135func TestArrayAssignPatternLHS(t *testing.T) {
4136 const SCRIPT = `
4137 let a = {};
4138 [ a.b, a['c'] = 2 ] = [1];
4139 a.b === 1 && a.c === 2;
4140 `
4141 testScript(SCRIPT, valueTrue, t)
4142}
4143
4144func TestArrayAssignPatternElision(t *testing.T) {
4145 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…