|Written by Ian Elliot|
|Monday, 29 January 2018|
So what do you think the most common errors are going to be?
The ten errors are:
The first two are a bit of a cheat because they are the same error as reported by Chrome and Safari, but if you look more closely most of the errors are of a single type - trying to use a property or method that an object doesn't have. At this point it is tempting to conclude "what else do you expect from a weakly typed dynamic language!". However, these are runtime errors and might well have not been picked up by strong typing.
The Rollbar blog speculates that the majority of these problems occur because of race conditions in asynchronous operations. For example, trying to access a DOM element before the component has finished loading.
The only cases I can think of are the race condition already described and similar and the occurrence of edge cases where functions fail to return an object at all.
More data required.
or email your comment to: email@example.com
|Last Updated ( Monday, 29 January 2018 )|