File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff 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///|
650625test "stringify deep nested array" {
651626 // Build a deeply nested JSON array like [[[[[]]]]] with depth = 6000
You can’t perform that action at this time.
0 commit comments