mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
* Also fixes infinite parser loops * Also implements command line option forwarding to node.js
23 lines
488 B
JavaScript
Executable File
23 lines
488 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/* tslint:disable */
|
|
|
|
const tailArgs = process.argv.indexOf("--");
|
|
if (~tailArgs) {
|
|
require("child_process").spawnSync(
|
|
process.argv[0],
|
|
process.argv.slice(tailArgs + 1).concat(
|
|
process.argv.slice(1, tailArgs)
|
|
),
|
|
{ stdio: "inherit" }
|
|
);
|
|
return;
|
|
}
|
|
|
|
require("source-map-support").install();
|
|
|
|
const asc = module.exports = require("../cli/asc.js");
|
|
if (/\basc$/.test(process.argv[1])) {
|
|
process.exitCode = asc.main(process.argv.slice(2));
|
|
}
|