Remove AST_ObjectComputedKeyVal

This commit is contained in:
Anthony Van de Gejuchte
2016-10-18 16:18:34 +02:00
committed by Richard van Velzen
parent b7bb706150
commit 7e80a979a7
4 changed files with 10 additions and 31 deletions

View File

@@ -1507,14 +1507,6 @@ function parse($TEXT, options) {
name: property_token,
end: prev()
}));
} else if (property instanceof AST_Node) {
expect(":");
elements.push(new AST_ObjectComputedKeyVal({
start: property_token,
key: property,
value: binding_element(used_parameters, symbol_type),
end: prev()
}));
} else {
expect(":");
elements.push(new AST_ObjectKeyVal({
@@ -1989,7 +1981,7 @@ function parse($TEXT, options) {
if (type == "punc" && start.value == "[") {
expect(":");
a.push(new AST_ObjectComputedKeyVal({
a.push(new AST_ObjectKeyVal({
start: start,
key: name,
value: expression(false),