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

Function TestArrayAssignPattern

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

Source from the content-addressed store, hash-verified

4115}
4116
4117func TestArrayAssignPattern(t *testing.T) {
4118 const SCRIPT = `
4119 let a, b;
4120 ([a, b] = [1, 2]);
4121 a === 1 && b === 2;
4122 `
4123 testScript(SCRIPT, valueTrue, t)
4124}
4125
4126func TestArrayAssignPattern1(t *testing.T) {
4127 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…