Skip to content

Commit 35dbed2

Browse files
dnalborczyktargos
authored andcommitted
doc: call cwd function
PR-URL: #40573 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Voltrex <[email protected]>
1 parent 4870a23 commit 35dbed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/esm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ import { fileURLToPath, pathToFileURL } from 'url';
898898
899899
import CoffeeScript from 'coffeescript';
900900
901-
const baseURL = pathToFileURL(`${cwd}/`).href;
901+
const baseURL = pathToFileURL(`${cwd()}/`).href;
902902
903903
// CoffeeScript files end in .coffee, .litcoffee or .coffee.md.
904904
const extensionsRegex = /\.coffee$|\.litcoffee$|\.coffee\.md$/;

0 commit comments

Comments
 (0)