From f3264a1fce692bd25d7102413960e8d8099c8d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 13 Feb 2022 10:54:27 +0100 Subject: [PATCH] lib: add FormData global when fetch is enabled --- .eslintrc.js | 1 + doc/api/globals.md | 11 +++++++++++ lib/.eslintrc.yaml | 2 ++ lib/internal/bootstrap/pre_execution.js | 1 + test/common/index.js | 1 + test/parallel/test-fetch.mjs | 1 + test/wpt/test-url.js | 2 +- tools/doc/type-parser.mjs | 1 + 8 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index c7c7cc56051b1c..b82943be9ed5fd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -337,6 +337,7 @@ module.exports = { performance: 'readable', structuredClone: 'readable', fetch: 'readable', + FormData: 'readable', Headers: 'readable', Request: 'readable', Response: 'readable', diff --git a/doc/api/globals.md b/doc/api/globals.md index f4ea4fb474724f..c848da6c57dcdc 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -389,6 +389,17 @@ added: v17.5.0 A browser-compatible implementation of the [`fetch()`][] function. +## Class `FormData` + + + +> Stability: 1 - Experimental. Enable this API with the [`--experimental-fetch`][] +> CLI flag. + +A browser-compatible implementation of {FormData}. + ## `global`