summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_gc.js
blob: b3885c535620804ee82be5a83420e4f8a56c3bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
print( "Hello World" )
var arr = new Array();

for( var idx = 0; idx < 500; ++idx )
{
	arr[idx] = new TQLabel(this);
	arr[idx].text = "foo " + idx;
}

for( var idx = 0; idx < 500; ++idx )
{
	println( arr[idx].text );
	arr[idx] = new TQLabel(this);
	arr[idx].text = "bar " + idx;	
}

for( var idx = 0; idx < 500; ++idx )
{
	println( arr[idx].text );
}