Closed avdg closed 8 years ago
Related to #448
{
"_class": "AST_Toplevel",
"body": [
{
"_class": "AST_Var",
"definitions": [
{
"_class": "AST_VarDef",
"name": {
"_class": "AST_SymbolVar",
"name": "af"
},
"value": {
"_class": "AST_Arrow",
"argnames": [
{
"_class": "AST_SymbolFunarg",
"default": {
"_class": "AST_Number",
"value": 1
},
"name": "x"
}
],
"body": {
"_class": "AST_SymbolRef",
"name": "x"
}
}
}
]
}
]
}
@avdg Would it be possible to put an [ES6] prefix in the title of ES6 issues? It's easier to separate the issues that way.
Should be resolved by now
Harmony only (f63803e3e3753253721a4d7abbbe2ff46f11eecc)
Test: https://github.com/tc39/test262/blob/93e9da29a0604e9c2742436979eb1074eb301758/test/language/expressions/arrow-function/syntax/arrowparameters-cover-initialize-1.js
Test case:
var af = (x = 1) => x
Output (with -c flag):var af=x=1=>x;