mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
feat(printer) Print Debugger statement (#1265)
This commit is contained in:
parent
74e5616acc
commit
ca82125f0b
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue