committed by
Alex Lam S.L
parent
2fd86d3cb0
commit
d26b7522d9
@@ -1998,7 +1998,6 @@ function parse($TEXT, options) {
|
|||||||
// allow trailing comma
|
// allow trailing comma
|
||||||
break;
|
break;
|
||||||
start = S.token;
|
start = S.token;
|
||||||
var type = start.type;
|
|
||||||
var name = as_property_name();
|
var name = as_property_name();
|
||||||
var value;
|
var value;
|
||||||
|
|
||||||
@@ -2009,9 +2008,6 @@ function parse($TEXT, options) {
|
|||||||
a.push(concise);
|
a.push(concise);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!(start.type !== name)) {
|
|
||||||
unexpected(S.token);
|
|
||||||
}
|
|
||||||
|
|
||||||
value = new AST_SymbolRef({
|
value = new AST_SymbolRef({
|
||||||
start: prev(),
|
start: prev(),
|
||||||
|
|||||||
@@ -320,3 +320,14 @@ expansion: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_1613: {
|
||||||
|
mangle = { toplevel: true };
|
||||||
|
input: {
|
||||||
|
const name = 1;
|
||||||
|
const foo = {
|
||||||
|
name
|
||||||
|
};
|
||||||
|
}
|
||||||
|
expect_exact: "const n=1;const c={name:n};"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user