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