blob: 5ea31687db9024b7895510c6ee0b1908858ee098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function fn() {
var name = 'foo';
var ret = {
'bizz buzz': function() {
return 1;
},
name: name
};
ret[name] = 'bar';
ret[name + 'foo'] = 'foo';
return ret;
}
assertEqual(fn().foofoo, 'foo');
test(fn);
|