Use double quotes for identifiers in error messages

This commit is contained in:
Daniel Gasienica 2018-03-23 18:24:50 -04:00
parent 06e7bca276
commit 867f73b80a
6 changed files with 15 additions and 15 deletions

View file

@ -1,6 +1,6 @@
exports.stringToArrayBuffer = (string) => {
if (typeof string !== 'string') {
throw new TypeError('`string` must be a string');
throw new TypeError('"string" must be a string');
}
const array = new Uint8Array(string.length);