(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestArrayCircularReferenceToString(t *testing.T) { |
| 8 | const SCRIPT = ` |
| 9 | var T = [1, 2, 3]; |
| 10 | T[42] = T; // Create circular reference |
| 11 | var str = String(T); |
| 12 | // Circular reference should be replaced with empty string |
| 13 | str === "1,2,3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"; |
| 14 | ` |
| 15 | testScript(SCRIPT, valueTrue, t) |
| 16 | } |
| 17 | |
| 18 | func TestArrayCircularReferenceNumericOperation(t *testing.T) { |
| 19 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…