Skip to content

Commit 77e49bb

Browse files
committed
Replace more .wast references with .wat
1 parent de1c4b3 commit 77e49bb

File tree

9 files changed

+25
-7
lines changed

9 files changed

+25
-7
lines changed

dist/asc.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/game-of-life/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An [AssemblyScript](http://assemblyscript.org) example. Continuously updates the
66
Instructions
77
------------
88

9-
To build [assembly/game-of-life.ts](./assembly/game-of-life.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
9+
To build [assembly/game-of-life.ts](./assembly/game-of-life.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
1010

1111
```
1212
$> npm run build

examples/i64-polyfill/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ API
119119
Building
120120
--------
121121

122-
To build [assembly/i64.ts](./assembly/i64.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
122+
To build [assembly/i64.ts](./assembly/i64.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
123123

124124
```
125125
$> npm run build

examples/pson/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An [AssemblyScript](http://assemblyscript.org) example. Decodes a [PSON](https:/
66
Instructions
77
------------
88

9-
To build [assembly/pson.ts](./assembly/pson.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
9+
To build [assembly/pson.ts](./assembly/pson.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
1010

1111
```
1212
$> npm run build

examples/ugc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A port of [Bach Le's μgc garbage collector library](https://github.com/bullno1/
66
Instructions
77
------------
88

9-
To build [assembly/ugc.ts](./assembly/ugc.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
9+
To build [assembly/ugc.ts](./assembly/ugc.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
1010

1111
```
1212
$> npm run build

lib/webpack/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function compile() {
2222
path.basename(this.resourcePath),
2323
"--baseDir", path.dirname(this.resourcePath),
2424
"--binaryFile", basePath + ".wasm",
25-
"--textFile", basePath + ".wast",
25+
"--textFile", basePath + ".wat",
2626
"--validate",
2727
"--optimize"
2828
];

tests/binaryen/asmjs.wat

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(module
2+
(type $i (func (param i32) (result i32)))
3+
(memory $0 0)
4+
(export "test/switch/case/eval" (func $test/switch/case/eval))
5+
(import "env" "switch" (func $switch (param i32 i32 i32 i32)))
6+
(global $HEAP_BASE i32 (i32.const 4))
7+
(global $FLT i32 (f32.const -4.0))
8+
(global $DBL i32 (f64.const -4.0))
9+
(func $test/switch/case/eval (; 0 ;) (type $i) (param $0 i32) (result i32)
10+
(if (result i32)
11+
(i32.eqz
12+
(get_global $HEAP_BASE)
13+
)
14+
(i32.const 0)
15+
(get_local $0)
16+
)
17+
)
18+
)

0 commit comments

Comments
 (0)