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

Function TestWeakSetArraySimple

builtin_weakset_test.go:23–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestWeakSetArraySimple(t *testing.T) {
24 const SCRIPT = `
25 var o1 = {}, o2 = {}, o3 = {};
26
27 var s = new WeakSet([o1, o2, o3]);
28 s.has(o1) && s.has(o2) && s.has(o3);
29 `
30 testScript(SCRIPT, valueTrue, t)
31}
32
33func TestWeakSetArrayGeneric(t *testing.T) {
34 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…