MCPcopy
hub / github.com/gopherjs/gopherjs / TestInternalizeCircularReference

Function TestInternalizeCircularReference

js/js_test.go:11–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestInternalizeCircularReference(t *testing.T) {
12 // See https://github.com/gopherjs/gopherjs/issues/968.
13 js.Global.Call("eval", `
14 var issue968a = {};
15 var issue968b = {'a': issue968a};
16 issue968a.b = issue968b;`)
17 _ = js.Global.Get("issue968a").Interface()
18}

Callers

nothing calls this directly

Calls 3

GetMethod · 0.65
CallMethod · 0.45
InterfaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…