feat(printer) Print Debugger statement (#1265)

This commit is contained in:
Cameron 2023-11-13 13:06:29 +00:00 committed by GitHub
parent 74e5616acc
commit ca82125f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,10 @@ impl<'a> Format<'a> for WithStatement<'a> {
impl<'a> Format<'a> for DebuggerStatement {
fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> {
Doc::Line
let mut parts = p.vec();
parts.push(Doc::Str("debugger"));
parts.push(Doc::Str(";"));
Doc::Array(parts)
}
}