Skip to content

Commit afecde7

Browse files
committed
remove test cases "call stack overflow"
we track this issues in #3024
1 parent ad2361f commit afecde7

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

json/json_test.mbt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -621,31 +621,6 @@ test "nested json" {
621621
})
622622
}
623623

624-
///|
625-
test "call stack overflow" {
626-
let depth = 50000
627-
let json_string = StringBuilder::new()
628-
for _ in 0..=depth {
629-
json_string.write_char('[')
630-
}
631-
for _ in 0..=depth {
632-
json_string.write_char(']')
633-
}
634-
let _ = @json.parse(json_string.to_string()) catch { _ => null }
635-
let depth = 1500
636-
let json_string = StringBuilder::new()
637-
for _ in 0..=depth {
638-
json_string.write_char('[')
639-
}
640-
for _ in 0..=depth {
641-
json_string.write_char(']')
642-
}
643-
let _ = @json.parse(json_string.to_string(), max_nesting_depth=2000) catch {
644-
_ => null
645-
}
646-
647-
}
648-
649624
///|
650625
test "stringify deep nested array" {
651626
// Build a deeply nested JSON array like [[[[[]]]]] with depth = 6000

0 commit comments

Comments
 (0)