blob: b985c6068e9c23fc8fd4f31be2cc4320f2520e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
var gTestcases = new Array();
var gTc = gTestcases.length;
var setterCalled = false;
function TestCase() {
gTestcases[gTc++] = this;
}
for(var i = 0; i < 13; ++i) {
var testcase = new TestCase();
}
Array.prototype.__defineSetter__(32, function() { setterCalled = true; });
for(var i = 0; i < 20; ++i) {
var testcase = new TestCase();
}
assertEq(setterCalled, true);
|