TooTallNate / node-cgi

An http/stack/connect layer to invoke and serve CGI executables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with Node v0.12.2

Desmodue opened this issue · comments

Hi

Using NodeJS v0.12.2 I am getting this error.

.get() is deprecated. Access using array indexes instead.

This is coming from the bufferjs library, indexOf.js line 16

    if (haystack.get(i+j) !== needle.get(j)) {

There appear to be no updates for bufferjs, it is over 3 years old. Guess the latest Node has broken it.
Will there be any updates to cgi for the latest Node version ?

Cheers

Gary

I guess I should issue a pull request to browserjs.
Simple fix. Change the line 16 to

if (haystack[i+j] !== needle[j]) {

As browserjs looks pretty inactive, this may help others with the issue.

Gary