Index: autotest/test_abprewrite_module.js.expected |
=================================================================== |
--- a/autotest/test_abprewrite_module.js.expected |
+++ b/autotest/test_abprewrite_module.js.expected |
@@ -64,51 +64,62 @@ require.scopes["abprewrite_source"] = (f |
{ |
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); |
} |