Make memory allocators pluggable

This commit is contained in:
dcodeIO
2018-01-28 19:33:05 +01:00
parent 78debee847
commit 896810859e
13 changed files with 16 additions and 41 deletions

View File

@ -156,7 +156,7 @@ args._.forEach(filename => {
while ((nextPath = parser.nextFile()) != null) {
try {
readTime += measure(() => {
if (nextPath.starsWith("std:"))
if (nextPath.startsWith("std:"))
nextText = fs.readFileSync(stdlibDir + "/" + nextPath.substring(4) + ".ts", { encoding: "utf8" });
else
nextText = fs.readFileSync(nextPath + ".ts", { encoding: "utf8" });