diff --git a/doc/api/esm.md b/doc/api/esm.md index 91c269cb0d0f40..caf21f6607faff 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -978,7 +978,7 @@ close normally. export function globalPreload({ port }) { port.on('message', (msg) => { port.postMessage(msg); - }; + }); return `\ port.postMessage('console.log("I went to the Loader and back");'); port.on('message', (data) => {