mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-10 05:21:27 +00:00
Fix inclusion of stdlib in asc
This commit is contained in:
parent
666ba54e42
commit
a0ec684e1c
@ -91,7 +91,7 @@ function checkDiagnostics(parser) {
|
||||
|
||||
// Include standard library
|
||||
if (!args.noLib) {
|
||||
var stdlibDir = path.join(__dirname + "..", "std", "assembly");
|
||||
var stdlibDir = path.join(__dirname, "..", "std", "assembly");
|
||||
glob.sync("*.ts", { cwd: stdlibDir }).forEach(file => {
|
||||
var nextText = fs.readFileSync(path.join(stdlibDir, file), { encoding: "utf8" });
|
||||
parser = assemblyscript.parseFile(nextText, "std:" + file, parser, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user