Permalink
Browse files

Fix buffer test

  • Loading branch information...
1 parent 5e409c2 commit 6461af1baa4ed1f9b1f521a9e7dda33b3b946eb5 @ry ry committed May 19, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 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')
+});

0 comments on commit 6461af1

Please sign in to comment.