Prevent error that happens when trying to read a value that was deleted before #26

Merged
merged 2 commits into from Jul 11, 2011

Projects

None yet

2 participants

@Pita
Pita commented Jul 9, 2011

The index array saves a value with the length 0. When trying to read this value again JSON.parse fails. This commit prevents it from trying to parse the 0 length value. Instead it throws the same exception that gets thrown if a value doesn't exist

The other commit is just a .gitignore file with node_modules in it. This helps developing cause you can install the dependencies localy with npm

@creationix creationix merged commit 8090e34 into creationix:master Jul 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment