Fix #931: Create arrow functions in maybe_assign so that they can be used in assignments

This commit is contained in:
Fábio Santos
2016-02-09 00:02:23 +00:00
parent 2827fa8699
commit d7ec2ecc12
2 changed files with 31 additions and 1 deletions

View File

@@ -36,6 +36,17 @@ regression_arrow_functions_and_hoist: {
expect_exact: "a=>b;"
}
regression_assign_arrow_functions: {
input: {
oninstall = e => false;
oninstall = () => false;
}
expect: {
oninstall=e=>false;
oninstall=()=>false;
}
}
computed_property_names: {
input: {
obj({ ["x" + "x"]: 6 });