Merge pull request #3875 from dpalou/MOBILE-3947
MOBILE-3947 locutus: Fix error when unserialize PHP stringmain
commit
7c643dc4a4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue