Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
doc: call cwd function
PR-URL: #40573
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
dnalborczyk authored and BethGriggs committed Nov 25, 2021
1 parent d732ff4 commit d72fb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/esm.md
Expand Up @@ -893,7 +893,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$/;
Expand Down

0 comments on commit d72fb7d

Please sign in to comment.