Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
89
rated 0 times [  92] [ 3]  / answers: 1 / hits: 20143  / 13 Years ago, tue, february 14, 2012, 12:00:00

We have an object with more than 75000 properties. The format of the object is as following:



// The key starts with 3 letters and then is followed by 8 numbers
var bigArray = {'AAA########':123456789,
'AAA########':123456790,
'AAA########':123456791
};


Is there a known limit of the quantity of properties for JavaScript objects? From my tests the object still works at 65500 elements.




  • In Windows 7, IE9 the script crashes (error -2147024882).

  • Windows XP, IE8 works fine.


More From » object

 Answers
35

From our test on this issue it seems that IE9, Windows 7, limits the number of line in a HTA script to 65535. I did not find any source on the issue, it is just the results of our tests.


[#87465] Monday, February 13, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
longd

Total Points: 616
Total Questions: 110
Total Answers: 101

Location: Andorra
Member since Sat, May 27, 2023
1 Year ago
;