MOBILE-3947 locutus: Fix error when unserialize PHP string

main
Dani Palou 2023-12-01 09:50:57 +01:00
parent 4089315755
commit 68cd9dd31d
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ function expectArray (str, cache) {
throw SyntaxError('Expected }') 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) { function expectArrayItems (str, expectedItems = 0, cache) {