Problem with Node v0.12.2
Desmodue opened this issue · comments
Desmodue commented
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
Desmodue commented
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