From 247b887ef57d193ca959e6fe5cf9f5f752bc7656 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 83b855bbb5b159..720a2786aa9f62 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -319,6 +319,7 @@ module.exports = { Crypto: 'readable', CryptoKey: 'readable', fetch: 'readable', + FormData: 'readable', globalThis: 'readable', Response: 'readable', SubtleCrypto: '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`