Guanfeng, the problem is that you're initializing the map property in the properties block, and the value you're initializing with is a handle. Your class creates the value on the right hand side of
map = containers.Map('KeyType','double','ValueType','any');
once, and assigns it to that property in each new instance. But because that value is a handle, the assignment just copies the handle, and so all the properties point to the same map. This would not happen if you initialized with a value that wasn't a handle.
The solution is to put the initialization of that property into the testClass constructor.
Hope this helps.
Best Answer