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

PR-URL: https://github.com/nodejs/node/pull/17483 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
10 lines
240 B
JavaScript
10 lines
240 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
common.expectsError(() => new Buffer(42, 'utf8'), {
|
|
code: 'ERR_INVALID_ARG_TYPE',
|
|
type: TypeError,
|
|
message: 'The "string" argument must be of type string. Received type number'
|
|
});
|