From 35dbed21f2f2234c3a045c16d55e5451a4ecf87d Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Fri, 22 Oct 2021 21:02:34 -0400 Subject: [PATCH] doc: call cwd function PR-URL: https://github.com/nodejs/node/pull/40573 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Voltrex --- 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 c4b4df2b59880d..e20d3f99416948 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -898,7 +898,7 @@ import { fileURLToPath, pathToFileURL } from 'url'; import CoffeeScript from 'coffeescript'; -const baseURL = pathToFileURL(`${cwd}/`).href; +const baseURL = pathToFileURL(`${cwd()}/`).href; // CoffeeScript files end in .coffee, .litcoffee or .coffee.md. const extensionsRegex = /\.coffee$|\.litcoffee$|\.coffee\.md$/;