/fetch/api/response/response-static-json.any.html| status | subtest | message |
|---|---|---|
| FAIL | Check response returned by static json() with init undefined | assert_equals: Response's statusText is "" expected "" but got "OK" |
| FAIL | Check response returned by static json() with init {"status":400} | assert_equals: Response's statusText is "" expected "" but got "Bad Request" |
| PASS | Check response returned by static json() with init {"statusText":"foo"} | |
| FAIL | Check response returned by static json() with init {"headers":{}} | assert_equals: Response's statusText is "" expected "" but got "OK" |
| FAIL | Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}} | assert_equals: Response's statusText is "" expected "" but got "OK" |
| FAIL | Check response returned by static json() with init {"headers":{"x-foo":"bar"}} | assert_equals: Response's statusText is "" expected "" but got "OK" |
| PASS | Throws TypeError when calling static json() with a status of 204 | |
| PASS | Throws TypeError when calling static json() with a status of 205 | |
| PASS | Throws TypeError when calling static json() with a status of 304 | |
| PASS | Check static json() encodes JSON objects correctly | |
| FAIL | Check static json() throws when data is not encodable | assert_throws_js: function "function () { Response.json(Symbol("foo")); }" did not throw |
| PASS | Check static json() throws when data is circular | |
| PASS | Check static json() propagates JSON serializer errors | |
| PASS | Check response returned by static json() with input 𝌆 | |
| PASS | Check response returned by static json() with input U+df06U+d834 | |
| PASS | Check response returned by static json() with input U+dead |
bundle built 2026-07-16T07:16:48.063Z