From 647805a7478ba679435efb7c48ed9ac6fe164a77 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 Backport-PR-URL: https://github.com/nodejs/node/pull/42727 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 | 4 ++++ lib/internal/bootstrap/pre_execution.js | 1 + test/common/index.js | 1 + test/parallel/test-fetch.mjs | 1 + test/wpt/test-url.js | 9 +++++++++ tools/doc/type-parser.mjs | 1 + 8 files changed, 29 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 82579a335d178b..ed78f927782f3f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -335,6 +335,7 @@ module.exports = { atob: 'readable', performance: 'readable', fetch: 'readable', + FormData: 'readable', Headers: 'readable', Request: 'readable', Response: 'readable', diff --git a/doc/api/globals.md b/doc/api/globals.md index 2e3b1782f80794..9291a6dfe1636f 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -306,6 +306,17 @@ added: REPLACEME 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`