Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix buffer test

  • Loading branch information...
commit 6461af1baa4ed1f9b1f521a9e7dda33b3b946eb5 1 parent 5e409c2
@ry ry authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/simple/test-buffer.js
View
4 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')
+});
Please sign in to comment.
Something went wrong with that request. Please try again.