From 728b7832dc8f4e50d08047a4e3b357378241dc09 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 13 Nov 2023 13:02:21 +0000 Subject: [PATCH] feat(prettier) Print `this` expression (#1263) --- crates/oxc_prettier/src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_prettier/src/format.rs b/crates/oxc_prettier/src/format.rs index cf796a7c1..5f7d1641b 100644 --- a/crates/oxc_prettier/src/format.rs +++ b/crates/oxc_prettier/src/format.rs @@ -488,7 +488,7 @@ impl<'a> Format<'a> for StringLiteral { impl<'a> Format<'a> for ThisExpression { fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> { - Doc::Line + Doc::Str("this") } }