You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -137,7 +136,7 @@ function from(value, encodingOrOffset, length) {
137
136
return fromArrayView(value);
138
137
}
139
138
if (value == null) {
140
-
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + _typeof(value));
139
+
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + typeof value);
141
140
}
142
141
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + _typeof(value));
159
+
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + typeof value);
161
160
}
162
161
163
162
/**
@@ -391,7 +390,7 @@ function byteLength(string, encoding) {
391
390
return string.byteLength;
392
391
}
393
392
if (typeof string !== 'string') {
394
-
throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + _typeof(string));
393
+
throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + typeof string);
395
394
}
396
395
var len = string.length;
397
396
var mustMatch = arguments.length > 2 && arguments[2] === true;
0 commit comments