You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was broken by f2c4e78. It's important to have working because React Native ListViewDataSource relies on Object.keys, and therefore our example app no longer works when debugging it in Chrome. Unfortunately, I can't figure out a way to continue to use Object.preventExtensions (so that we throw exceptions on setting out-of-bounds indices) and have Object.keys work properly with List.
Until a eureka moment strikes me, I propose that we back out that commit and helpfully throw an exception when setting to list[-1] and list[list.length] in Chrome.
The text was updated successfully, but these errors were encountered:
Rather than using Object.preventExtensions to throw exceptions when setting any out-of-bounds index, we must instead compromise by only throwing for the common cases, which are -1 and list.length. Having Object.keys() support is essential for List to work with React Native ListViewDataSource.
Resolves#80
This was broken by f2c4e78. It's important to have working because React Native
ListViewDataSource
relies onObject.keys
, and therefore our example app no longer works when debugging it in Chrome. Unfortunately, I can't figure out a way to continue to useObject.preventExtensions
(so that we throw exceptions on setting out-of-bounds indices) and haveObject.keys
work properly withList
.Until a eureka moment strikes me, I propose that we back out that commit and helpfully throw an exception when setting to
list[-1]
andlist[list.length]
in Chrome.The text was updated successfully, but these errors were encountered: