ladybird/Userland/Libraries/LibJS/Tests/builtins/JSON
Luke Wilde da25ac0d48 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.
2022-07-10 23:31:48 +02:00
..
JSON.@@toStringTag.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.parse-reviver.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.parse.js AK: Treat empty string as invalid JSON 2022-07-10 23:31:48 +02:00
JSON.stringify-exception-in-property-getter.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.stringify-order.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.stringify-proxy.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.stringify-replacer.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.stringify-space.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON.stringify.js LibJS: Fix JSON.stringify with stale surrogate codepoints 2022-02-07 13:53:36 +00:00