michael@0: function getTestContent() michael@0: { michael@0: yield "hello"; michael@0: yield 2+3; michael@0: yield 12; michael@0: yield null; michael@0: yield "complex" + "string"; michael@0: yield new Object(); michael@0: yield new Date(1306113544); michael@0: yield [1, 2, 3, 4, 5]; michael@0: let obj = new Object(); michael@0: obj.foo = 3; michael@0: obj.bar = "hi"; michael@0: obj.baz = new Date(1306113544); michael@0: obj.boo = obj; michael@0: yield obj; michael@0: michael@0: let recursiveobj = new Object(); michael@0: recursiveobj.a = recursiveobj; michael@0: recursiveobj.foo = new Object(); michael@0: recursiveobj.foo.bar = "bar"; michael@0: recursiveobj.foo.backref = recursiveobj; michael@0: recursiveobj.foo.baz = 84; michael@0: recursiveobj.foo.backref2 = recursiveobj; michael@0: recursiveobj.bar = new Object(); michael@0: recursiveobj.bar.foo = "foo"; michael@0: recursiveobj.bar.backref = recursiveobj; michael@0: recursiveobj.bar.baz = new Date(1306113544); michael@0: recursiveobj.bar.backref2 = recursiveobj; michael@0: recursiveobj.expando = recursiveobj; michael@0: yield recursiveobj; michael@0: michael@0: let obj = new Object(); michael@0: obj.expando1 = 1; michael@0: obj.foo = new Object(); michael@0: obj.foo.bar = 2; michael@0: obj.bar = new Object(); michael@0: obj.bar.foo = obj.foo; michael@0: obj.expando = new Object(); michael@0: obj.expando.expando = new Object(); michael@0: obj.expando.expando.obj = obj; michael@0: obj.expando2 = 4; michael@0: obj.baz = obj.expando.expando; michael@0: obj.blah = obj.bar; michael@0: obj.foo.baz = obj.blah; michael@0: obj.foo.blah = obj.blah; michael@0: yield obj; michael@0: michael@0: let diamond = new Object(); michael@0: let obj = new Object(); michael@0: obj.foo = "foo"; michael@0: obj.bar = 92; michael@0: obj.backref = diamond; michael@0: diamond.ref1 = obj; michael@0: diamond.ref2 = obj; michael@0: yield diamond; michael@0: michael@0: let doubleref = new Object(); michael@0: let obj = new Object(); michael@0: doubleref.ref1 = obj; michael@0: doubleref.ref2 = obj; michael@0: yield doubleref; michael@0: }