(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestArrayCircularReferenceJoin(t *testing.T) { |
| 33 | const SCRIPT = ` |
| 34 | var T = [1, 2, 3]; |
| 35 | T[42] = T; // Create circular reference |
| 36 | var str = T.join(','); |
| 37 | // Circular reference should be replaced with empty string |
| 38 | str === "1,2,3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"; |
| 39 | ` |
| 40 | testScript(SCRIPT, valueTrue, t) |
| 41 | } |
| 42 | |
| 43 | func TestArrayCircularReferenceConcat(t *testing.T) { |
| 44 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…