Buffer vs Uint8Array

I’m working with some networking code in Node.js that generates random data using var nonce = crypto.randomBytes(32) and then checks that nonce instanceof Uint8Array. Apparently, play.js thinks that Buffer doesn’t subclass Uint8Array - but proper Node.js does.

Comparison:

console.log(Buffer(1) instanceof Uint8Array)

in play.js shows “false”, but in node.js shows “true”.