Logo
Explore Help
Sign In
1berry/nodejs
1
0
Fork 0
You've already forked nodejs
Code Issues Packages Projects Releases Wiki Activity
nodejs/test/parallel/test-buffer-new.js

7 lines
152 B
JavaScript
Raw Normal View History

test: improve coverage of the buffer module 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>
2016-09-15 21:11:44 +02:00
'use strict';
require('../common');
const assert = require('assert');
assert.throws(() => new Buffer(42, 'utf8'), /first argument must be a string/);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 5006ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API