Regressed this in getter/setter doesn’t work as expected in certain circumstances

Published: | Categories: JavaScript


Firefox 41 has introduced a regression where the this keyword in a getter or setter cannot refer the relevant object under certain circumstances, leading to an unexpected TypeError while accessing the property. In the bug reporter’s case, the issue occurred with an object containing a large array, but it may happen in other conditions according to Mozilla developers. The issue has been fixed with Firefox 45.