From ec0d623bd7917945eef72b8e6ffc0727bb07979e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 18 Feb 2022 16:46:32 +0100 Subject: [PATCH] lib: add FormData global when fetch is enabled PR-URL: https://github.com/nodejs/node/pull/41956 Reviewed-By: Colin Ihrig Reviewed-By: Robert Nagy Reviewed-By: Benjamin Gruenbaum Reviewed-By: Matteo Collina Reviewed-By: Minwoo Jung Reviewed-By: Mestery Reviewed-By: Antoine du Hamel --- .eslintrc.js | 1 + doc/api/globals.md | 11 +++++++++++ lib/.eslintrc.yaml | 2 ++ lib/internal/bootstrap/pre_execution.js | 6 ++++++ 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, 24 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 7ca4251d6e46b8..bfc1a2dae32726 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -363,6 +363,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`