response-headers-guard.any.js (391B)
1 // META: global=window,worker 2 // META: title=Response: error static method 3 4 promise_test (async () => { 5 const response = await fetch("../resources/data.json"); 6 assert_throws_js(TypeError, () => { response.headers.append("name", "value"); }); 7 assert_not_equals(response.headers.get("name"), "value", "response headers should be immutable"); 8 }, "Ensure response headers are immutable");