Magic Hash Attack in Javascript


Would this attack be possible in a Javascript application that’s using using the loose equality == operator to compare two hashes?

Javascript is a weakly typed language so I would naturally assume the type coercion can be taken advantage of and present various security holes.