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

Side by Side Diff: autotest/abprewrite_source.js

Issue 6330303089999872: Issue 516 - JSHydra: return {foo:bar} produces broken code (Closed)
Patch Set: Created May 19, 2014, 6:58 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
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() 1;
40 let b = { 40 let b = {
41 get foo() 1 41 get foo() 1
42 }; 42 };
43 43
44 function foo()
45 {
46 return {foo: 1, bar: 2};
47 }
48
44 if (a == b) 49 if (a == b)
45 foo(); 50 foo();
46 else if (a == c) 51 else if (a == c)
47 bar(); 52 bar();
48 else 53 else
49 bas(); 54 bas();
50 if (a == b); 55 if (a == b);
51 56
52 for (let a = 0; a < b.length; a++) 57 for (let a = 0; a < b.length; a++)
53 foo(); 58 foo();
(...skipping 14 matching lines...) Expand all
68 yield i; 73 yield i;
69 } 74 }
70 } 75 }
71 var a = function() 76 var a = function()
72 { 77 {
73 for (var i = 0; i < 10; i++) 78 for (var i = 0; i < 10; i++)
74 { 79 {
75 yield i; 80 yield i;
76 } 81 }
77 }; 82 };
OLDNEW
« no previous file with comments | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld