Fix case where a lonely var is used as computed property
This commit is contained in:
committed by
Richard van Velzen
parent
5f6825f9ec
commit
c2112d5886
@@ -1508,7 +1508,7 @@ function OutputStream(options) {
|
||||
) {
|
||||
self.print_property_name(self.key, self.quote, output);
|
||||
} else {
|
||||
if (!(self.key instanceof AST_Node) || self.key instanceof AST_Symbol) {
|
||||
if (!(self.key instanceof AST_Node)) {
|
||||
self.print_property_name(self.key, self.quote, output);
|
||||
} else {
|
||||
output.with_square(function() {
|
||||
|
||||
Reference in New Issue
Block a user