// Test createThisScripted(), without a singleton.functionFoo(a){this.str="foo";}functionBar(a){this.str="bar";}functionf(){varx;for(vari=0;i<400;i++){if(i%2==0)x=Foo;elsex=Bar;vary=newx(5);if(i%2==0)assertEq(y.str,"foo");elseassertEq(y.str,"bar");}}f();