From 03c708a05566f437a1013f9af222e0d5bdd6099d Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Mon, 25 Sep 2023 13:44:42 +0100 Subject: [PATCH] Arrays small refactor [refactor] --- lib/serialize/arrays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serialize/arrays.js b/lib/serialize/arrays.js index e878a84d..bf785949 100644 --- a/lib/serialize/arrays.js +++ b/lib/serialize/arrays.js @@ -101,7 +101,7 @@ function serializeArray(record) { // `wrapWithProperties()` does not know that adding integer-keyed properties also alters `length`. existingProps.push({ key: 'length', - valRecord: this.traceValue(index), + valRecord: this.traceValue(length), getRecord: undefined, setRecord: undefined, writable: true,