Remove AST_ObjectComputedKeyVal
This commit is contained in:
committed by
Richard van Velzen
parent
b7bb706150
commit
7e80a979a7
10
lib/parse.js
10
lib/parse.js
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user