Use double quotes for identifiers in error messages
This commit is contained in:
parent
06e7bca276
commit
867f73b80a
6 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue