From 5ca3bba423e7bc2c7cd32d0c3319254874bdbbd4 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 14 Aug 2023 13:42:30 +0200 Subject: [PATCH] doc: fix name of the flag in `initialize()` docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/49158 Reviewed-By: Debadree Chatterjee Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index aa444cc9480e6d..34791f89e0c845 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -766,7 +766,7 @@ added: REPLACEME The `initialize` hook provides a way to define a custom function that runs in the loader's thread when the loader is initialized. Initialization happens when the loader is registered via [`register`][] or registered via the -`--loader` command line option. +`--experimental-loader` command line option. This hook can send and receive data from a [`register`][] invocation, including ports and other transferrable objects. The return value of `initialize` must be