Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: autotest/abprewrite_source.js

Issue 5417063522762752: Issue 427 - Desugar arrow functions to normal or bound functions (Closed)
Left Patch Set: Created May 10, 2014, 12:46 p.m.
Right Patch Set: I just decided to ignore eval and Function for now, I can open a new bug if we really want to ban t… Created May 18, 2014, 10:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 const Cc = Components.classes 1 const Cc = Components.classes
2 const Ci = Components.interfaces; 2 const Ci = Components.interfaces;
3 const Cu = Components.utils; 3 const Cu = Components.utils;
4 const Cr = Components.results; 4 const Cr = Components.results;
5 const Cl = Components.unknown; 5 const Cl = Components.unknown;
6 6
7 Cu.import("foo/bar.jsm"); 7 Cu.import("foo/bar.jsm");
8 8
9 let {Timeline} = require("timeline"); 9 let {Timeline} = require("timeline");
10 let {Utils} = require("utils"); 10 let {Utils} = require("utils");
(...skipping 18 matching lines...) Expand all
29 a += b; 29 a += b;
30 b -= a; 30 b -= a;
31 } 31 }
32 32
33 for (let [a, b] of fooList); 33 for (let [a, b] of fooList);
34 34
35 for (k of fooList) 35 for (k of fooList)
36 alert(k); 36 alert(k);
37 37
38 38
39 let a = function() 1; 39 let a = function() { return 1 };
40 let b = { 40 let b = {
41 get foo() 1 41 get foo() { return 1; }
42 }; 42 };
43 43
44 if (a == b) 44 if (a == b)
45 foo(); 45 foo();
46 else if (a == c) 46 else if (a == c)
47 bar(); 47 bar();
48 else 48 else
49 bas(); 49 bas();
50 if (a == b); 50 if (a == b);
51 51
(...skipping 16 matching lines...) Expand all
68 yield i; 68 yield i;
69 } 69 }
70 } 70 }
71 var a = function() 71 var a = function()
72 { 72 {
73 for (var i = 0; i < 10; i++) 73 for (var i = 0; i < 10; i++)
74 { 74 {
75 yield i; 75 yield i;
76 } 76 }
77 }; 77 };
78
79 let x = (y) => y + 1;
80 x = y => y + 1;
81 x = (a, b) => this[a] + b;
82 x = (a, b) => { return () => 1; }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld