SerenityOS build: Monday, July 11
Images 💾⌗
- serenity-i686-20220711-da25ac0.img.gz (Raw image, 125.26 MiB)
- serenity-i686-20220711-da25ac0.vdi.gz (VirtualBox VDI, 125.09 MiB)
Last commit ⭐⌗
commit da25ac0d48e728cb424f1fce7f266563ec6f96b0
Author: Luke Wilde <lukew@serenityos.org>
AuthorDate: Sun Jul 10 21:37:28 2022 +0100
Commit: Linus Groh <mail@linusgroh.de>
CommitDate: Sun Jul 10 23:31:48 2022 +0200
AK: Treat empty string as invalid JSON
Previously we would treat the empty string as `null`. This caused
JavaScript like this to fail:
```js
var object = {};
try {
object = JSON.parse("");
} catch {}
var array = object.array || [];
```
Since `JSON.parse("")` returned null instead of throwing, it would set
`object` to null and then try and use it instead of using the default
backup value.
Other builds