mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +00:00

The only test with modifications is `test-stdin-child-proc` that was passing when it should not because the exit code of the child process was not being checked. PR-URL: https://github.com/nodejs/node/pull/6087 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
16 lines
264 B
JavaScript
16 lines
264 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
assert.doesNotThrow(function() {
|
|
Buffer.allocUnsafe(10);
|
|
});
|
|
|
|
assert.throws(function() {
|
|
Buffer.from(10, 'hex');
|
|
});
|
|
|
|
assert.doesNotThrow(function() {
|
|
Buffer.from('deadbeaf', 'hex');
|
|
});
|