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

Function TestArrayBindingPattern

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

Source from the content-addressed store, hash-verified

4160}
4161
4162func TestArrayBindingPattern(t *testing.T) {
4163 const SCRIPT = `
4164 let [a, b] = [1, 2];
4165 a === 1 && b === 2;
4166 `
4167 testScript(SCRIPT, valueTrue, t)
4168}
4169
4170func TestObjectPatternShorthandInit(t *testing.T) {
4171 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…