コード例 #1
0
assert.throws(function() {
  var buf = new SlowBuffer(8);
  buf.readFloatLE(0xfffffff);
}, /Trying to access beyond buffer length/);
コード例 #2
0
assert.throws(function() {
  var buf = new SlowBuffer(8);
  buf.readFloatLE(-1);
}, /offset is not uint/);
コード例 #3
0
assert.throws(function() {
  var buf = new SlowBuffer(8);
  buf.readFloatLE(0xffffffff);
// TRIREME: access instead of read, ok?
}, /Trying to access beyond buffer length/);