From 6461af1baa4ed1f9b1f521a9e7dda33b3b946eb5 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 19 May 2011 12:41:17 -0700 Subject: [PATCH] Fix buffer test --- test/simple/test-buffer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/simple/test-buffer.js b/test/simple/test-buffer.js index ae67d09d6e..ad062e6264 100644 --- a/test/simple/test-buffer.js +++ b/test/simple/test-buffer.js @@ -523,4 +523,6 @@ assert.equal(0xef, b[3]); // This should not segfault the program. -new Buffer('"pong"', 0, 6, 8031, '127.0.0.1') +assert.throws(function() { + new Buffer('"pong"', 0, 6, 8031, '127.0.0.1') +});