h2non/jshashes

PhantomJS

tomastrajan opened this issue · 2 comments

It seems so that it doesn't work in PhantomJS, it always returns the same hash for different outpusts (tested with MD5 and SHA1), works as expected in Chrome and Firefox

h2non commented

Thanks for reporting. Will dig into it.

I actually found the problem, it's Phantom JS issue, i was passing the "arguments" object into hash function and in phantom it was unfortunately empty. It can be solved by calling Array.prototype.slice.call(arguments), which return array of arguments with real values.