aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ldc.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/ldc.js')
-rw-r--r--lib/compilers/ldc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/ldc.js b/lib/compilers/ldc.js
index 0583a0284..277d2979b 100644
--- a/lib/compilers/ldc.js
+++ b/lib/compilers/ldc.js
@@ -102,7 +102,7 @@ export class LDCCompiler extends BaseCompiler {
// Demangling is not needed.
const astFilename = output.inputFilename.concat('.cg');
try {
- return await fs.readFile(astFilename, 'utf-8');
+ return await fs.readFile(astFilename, 'utf8');
} catch (e) {
if (e instanceof Error && e.code === 'ENOENT') {
logger.warn(`LDC AST file ${astFilename} requested but it does not exist`);