Merge pull request #3875 from dpalou/MOBILE-3947

MOBILE-3947 locutus: Fix error when unserialize PHP string
main
Pau Ferrer Ocaña 2023-12-01 11:59:08 +01:00 committed by GitHub
commit 7c643dc4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {