diff --git a/boa_engine/src/syntax/ast/pattern.rs b/boa_engine/src/syntax/ast/pattern.rs index d1c58f6cb9b..c0ea5c1c42f 100644 --- a/boa_engine/src/syntax/ast/pattern.rs +++ b/boa_engine/src/syntax/ast/pattern.rs @@ -150,6 +150,9 @@ impl ToInternedString for ObjectPattern { buf.push_str(&str); } + if self.0.is_empty() { + buf.push(' '); + } buf.push('}'); buf }