Fix computed getters + cleanup AST

This commit is contained in:
Anthony Van de Gejuchte
2016-07-21 18:02:32 +02:00
parent 88384cf351
commit 3f8fc3a316
3 changed files with 17 additions and 33 deletions

View File

@@ -240,24 +240,5 @@ getter_setter_with_computed_value: {
}
}
}
expect: {
class C {
get ['a']() {
return 'A';
}
set ['a'](value) {
do_something(a);
}
}
var x = {
get [a.b]() {
return 42;
}
};
class MyArray extends Array {
get [Symbol.species]() {
return Array;
}
}
}
expect_exact: 'class C{get["a"](){return"A"}set["a"](value){do_something(a)}}var x={get[a.b](){return 42}};class MyArray extends Array{get[Symbol.species](){return Array}}'
}