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

Add tests for untested branches and statements. Also convert some lines to const. PR-URL: https://github.com/nodejs/node/pull/8552 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
8 lines
193 B
JavaScript
8 lines
193 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const Buffer = require('buffer').Buffer;
|
|
|
|
assert.throws(() => new Buffer(42, 'utf8'), /first argument must be a string/);
|