8000 Don't check max depth on startup · JavaScriptExpert/simdjson@553e6d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 553e6d7

Browse files
committed
Don't check max depth on startup
1 parent e6896ee commit 553e6d7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/generic/stage2/structural_parser.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ struct structural_parser : structural_iterator {
4343
parser.containing_scope[depth].count = 0;
4444
tape.skip(); // We don't actually *write* the start element until the end.
4545
parser.is_array[depth] = false;
46-
if (depth >= parser.max_depth()) { log_error("Exceeded max depth!"); return DEPTH_ERROR; }
4746
return SUCCESS;
4847
}
4948

0 commit comments

Comments
 (0)
0