Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

366 B
Raw Blame
// META: global=window,worker

// https://fetch.spec.whatwg.org/#forbidden-method
for (const method of [
    'CONNECT', 'TRACE', 'TRACK',
    'connect', 'trace', 'track'
  ]) {
  test(function() {
    assert_throws_js(TypeError,
      function() { new Request('./', {method: method}); }
    );
  }, 'Request() with a forbidden method ' + method + ' must throw.');
}