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

Unified Diff: autotest/test_abprewrite.js.expected

Issue 6330303089999872: Issue 516 - JSHydra: return {foo:bar} produces broken code (Closed)
Patch Set: Created May 19, 2014, 6:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « autotest/abprewrite_source.js ('k') | autotest/test_abprewrite_module.js.expected » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest/test_abprewrite.js.expected
===================================================================
--- a/autotest/test_abprewrite.js.expected
+++ b/autotest/test_abprewrite.js.expected
@@ -61,51 +61,62 @@ for (var _loopIndex9 = 0; _loopIndex9 <
{
k = fooList[_loopIndex9];
alert(k);
}
var a = function()
{
return 1;
};
-var b =
-{
+var b = {
get foo()
{
return 1;
}
};
+
+function foo()
+{
+ return {
+ foo: 1,
+ bar: 2
+ };
+}
if (a == b)
{
foo();
}
else if (a == c)
{
bar();
}
else
{
bas();
}
-if (a == b){}
+if (a == b)
+{}
for (var a = 0; a < b.length; a++)
{
foo();
}
-for (var a = 0; a < b.length; a++){}
+for (var a = 0; a < b.length; a++)
+{}
for (var a in b)
{
foo();
}
-for (var a in b){}
+for (var a in b)
+{}
while (a == b)
{
foo();
}
-while (a == b){}
+while (a == b)
+{}
function genFunc()
{
var _generatorResult10 = [];
for (var i = 0; i < 10; i++)
{
_generatorResult10.push(i);
}
« no previous file with comments | « autotest/abprewrite_source.js ('k') | autotest/test_abprewrite_module.js.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld