| Index: autotest/abprewrite_source.js |
| =================================================================== |
| --- a/autotest/abprewrite_source.js |
| +++ b/autotest/abprewrite_source.js |
| @@ -31,19 +31,19 @@ for (let [a, b] of fooList) |
| } |
| for (let [a, b] of fooList); |
| for (k of fooList) |
| alert(k); |
| -let a = function() 1; |
| +let a = function() { return 1 }; |
| let b = { |
| - get foo() 1 |
| + get foo() { return 1; } |
| }; |
| if (a == b) |
| foo(); |
| else if (a == c) |
| bar(); |
| else |
| bas(); |
| @@ -70,8 +70,13 @@ function genFunc() |
| } |
| var a = function() |
| { |
| for (var i = 0; i < 10; i++) |
| { |
| yield i; |
| } |
| }; |
| + |
| +let x = (y) => y + 1; |
| +x = y => y + 1; |
| +x = (a, b) => this[a] + b; |
| +x = (a, b) => { return () => 1; } |