(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func TestArrayCircularReferenceNumericOperation(t *testing.T) { |
| 19 | const SCRIPT = ` |
| 20 | var T = [1, 2, 3]; |
| 21 | T[42] = T; // Create circular reference |
| 22 | try { |
| 23 | var x = T % 2; // This should not crash |
| 24 | true; |
| 25 | } catch (e) { |
| 26 | false; |
| 27 | } |
| 28 | ` |
| 29 | testScript(SCRIPT, valueTrue, t) |
| 30 | } |
| 31 | |
| 32 | func TestArrayCircularReferenceJoin(t *testing.T) { |
| 33 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…