(t *testing.T)
| 109 | } |
| 110 | |
| 111 | func TestArrayCircularReferenceComparison(t *testing.T) { |
| 112 | const SCRIPT = ` |
| 113 | var T = [1, 2, 3]; |
| 114 | T[42] = T; // Create circular reference |
| 115 | try { |
| 116 | var result = T == 5; // Comparison should not crash |
| 117 | true; |
| 118 | } catch (e) { |
| 119 | false; |
| 120 | } |
| 121 | ` |
| 122 | testScript(SCRIPT, valueTrue, t) |
| 123 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…