Debian Codegraph @

js/src/jit-test/tests/JSON/parse-oom.js

raw
1 // |jit-test| --enable-json-parse-with-source; skip-if: !JSON.hasOwnProperty('isRawJSON')
2
3 oomTest(() => {
4 JSON.parse('{"a": [1, {"b":2}, "7"], "c": 8}');
5 });
6
7 oomTest(() => {
8 JSON.parse('{"a": [1, {"b":2}, "7"], "c": 8, "d": {"e": 9}}', (k, v, {source}) => v);
9 });