cosmetic change: follow the author code style

This commit is contained in:
Ildar Shaimordanov 2022-10-30 11:07:55 +03:00 committed by GitHub
parent b56ae55720
commit 133e0f2106
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,8 @@ if (typeof JSON !== "object") {
// Emulate [].includes(). It's actual for old-fashioned JScript.
function includes(array, value) {
for (var i = 0; i < array.length; i++) {
var i;
for (i = 0; i < array.length; i += 1) {
if (value === array[i]) {
return true;
}
@ -320,7 +321,7 @@ if (typeof JSON !== "object") {
// Check the value is not circular object. Otherwise throw TypeError.
if (includes(seen, value)) {
throw new TypeError('Converting circular structure to JSON');
throw new TypeError("Converting circular structure to JSON");
}
// Keep the value for the further check on circular references.