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

Unified 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.
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 | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest/abprewrite_source.js
===================================================================
--- a/autotest/abprewrite_source.js
+++ b/autotest/abprewrite_source.js
@@ -36,16 +36,21 @@ for (k of fooList)
alert(k);
let a = function() 1;
let b = {
get foo() 1
};
+function foo()
+{
+ return {foo: 1, bar: 2};
+}
+
if (a == b)
foo();
else if (a == c)
bar();
else
bas();
if (a == b);
« 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