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') +});