summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_gc.js
blob: aa1e11af6df615786bedb59dc94c26d07f4b4551 (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 QLabel(this);
	arr[idx].text = "foo " + idx;
}

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

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