summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/xhr/formdata/constructor.any.js
blob: 43704538ab2489a6cbd7a2449532a040fdb4adbd (plain)
1
2
3
4
5
6
// META: title=FormData: constructor

test(() => {
  assert_throws_js(TypeError, () => { new FormData(null); });
  assert_throws_js(TypeError, () => { new FormData("string"); });
}, "Constructors should throw a type error");