| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d02fb36 commit 6f31478
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,9 +9,9 @@ const buffer = fixtures.readSync('test.wasm'); | |||
| 9 | 9 | assert.ok(WebAssembly.validate(buffer), 'Buffer should be valid WebAssembly'); | |
| 10 | 10 | ||
| 11 | 11 | WebAssembly.instantiate(buffer, {}).then((results) => { | |
| 12 | + // Exported function should add two numbers. | ||
| 12 | 13 | assert.strictEqual( | |
| 13 | 14 | results.instance.exports.addTwo(10, 20), | |
| 14 | - 30, | ||
| 15 | - 'Exported function should add two numbers.', | ||
| 15 | + 30 | ||
| 16 | 16 | ); | |
| 17 | 17 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments