diff --git a/cli/tools/lint/ast_buffer/buffer.rs b/cli/tools/lint/ast_buffer/buffer.rs index b55e6d704ceabb..c440b73ccddc53 100644 --- a/cli/tools/lint/ast_buffer/buffer.rs +++ b/cli/tools/lint/ast_buffer/buffer.rs @@ -279,6 +279,7 @@ impl SerializeCtx { append_u32(&mut self.buf, span.hi.0); // No node has more than <10 properties + debug_assert!(prop_count < 10); self.buf.push(prop_count as u8); NodeRef(offset)