Skip to content

Commit 3ba95cd

Browse files
committed
add debug_assert!
1 parent b1675e5 commit 3ba95cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/tools/lint/ast_buffer/buffer.rs

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ impl SerializeCtx {
279279
append_u32(&mut self.buf, span.hi.0);
280280

281281
// No node has more than <10 properties
282+
debug_assert!(prop_count < 10);
282283
self.buf.push(prop_count as u8);
283284

284285
NodeRef(offset)

0 commit comments

Comments
 (0)