Rename wast to wat

This commit is contained in:
dcodeIO
2018-02-17 11:09:22 +01:00
parent 6b459259f9
commit e50a23bf75
123 changed files with 8534 additions and 176 deletions

View File

@ -129,7 +129,7 @@ exports.main = function main(argv, options, callback) {
"Syntax: asc [entryFile ...] [options]",
"",
"Examples: asc hello.ts",
" asc hello.ts -b hello.wasm -t hello.wast",
" asc hello.ts -b hello.wasm -t hello.wat",
" asc hello1.ts hello2.ts -b -O > hello.wasm",
"",
"Options:"
@ -392,7 +392,7 @@ exports.main = function main(argv, options, callback) {
let hasStdout = false;
if (args.outFile != null) {
if (/\.wast$/.test(args.outFile) && args.textFile == null)
if (/\.was?t$/.test(args.outFile) && args.textFile == null)
args.textFile = args.outFile;
else if (/\.js$/.test(args.outFile) && args.asmjsFile == null)
args.asmjsFile = args.outFile;

View File

@ -53,7 +53,7 @@
"aliases": [ "b" ]
},
"textFile": {
"desc": "Specifies the text output file (.wast).",
"desc": "Specifies the text output file (.wat).",
"type": "string",
"aliases": [ "t" ]
},