diff --git a/src/core/singletons/locutus.ts b/src/core/singletons/locutus.ts index 830cf8f95..22daa4f0f 100644 --- a/src/core/singletons/locutus.ts +++ b/src/core/singletons/locutus.ts @@ -310,7 +310,7 @@ function expectArray (str, cache) { throw SyntaxError('Expected }') } - return [ array[0], arrayLiteralBeginMatch?.length ?? 0 + (array[1] as number) + 1 ] // jump over } + return [ array[0], (arrayLiteralBeginMatch?.length ?? 0) + (array[1] as number) + 1 ] // jump over } } function expectArrayItems (str, expectedItems = 0, cache) {