test: fix Buffer OOM error message
authorTrevor Norris <trev.norris@gmail.com>
Wed, 16 Sep 2015 19:03:33 +0000 (13:03 -0600)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Wed, 16 Sep 2015 20:07:59 +0000 (16:07 -0400)
commit079a2173d469bbbac09063d728e1dac36640af12
tree4c86fef03068752bf16d88f2f749d624a669e282
parent8e5843405b2d5ca394d0cba2544e56e72c25de71
test: fix Buffer OOM error message

Now that Buffers instantiate the Uint8Array in JS the error message has
changed in case the allocation fails due to OOM. Tests have been updated
to match.

PR-URL: https://github.com/nodejs/node/pull/2915
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
test/parallel/test-buffer-slow.js
test/parallel/test-stringbytes-external.js