joyent/node — pull request #2400 by psung (2011-12-22 01:53:41+00:00)
Title: Don't pollute global namespace in buffer.readInt*

The buffer.readInt* methods set "val" in the global namespace. Adding a "var" declaration in the affected methods fixes this.

```
$ node
> b = new Buffer(4); b.writeInt32LE(255, 0);
undefined
> val
ReferenceError: val is not defined
at repl:1:2
[...]
> v = b.readInt32LE(0);
255
> val
255
```