mirror of https://github.com/lukechilds/node.git
Browse Source
PR-URL: https://github.com/nodejs/node/pull/4514 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>process-exit-stdio-flushing
Mathias Buus
9 years ago
committed by
James M Snell
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||
|
'use strict'; |
||||
|
require('../common'); |
||||
|
const assert = require('assert'); |
||||
|
|
||||
|
assert.doesNotThrow(function() { |
||||
|
new Buffer(10); |
||||
|
}); |
||||
|
|
||||
|
assert.throws(function() { |
||||
|
new Buffer(10, 'hex'); |
||||
|
}); |
||||
|
|
||||
|
assert.doesNotThrow(function() { |
||||
|
new Buffer('deadbeaf', 'hex'); |
||||
|
}); |
Loading…
Reference in new issue