Skip to content

Commit

Permalink
fix: keep decoding in wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed May 24, 2018
1 parent a9d9fee commit 7184bb4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions test/cases/wasm/decoding/index.js
@@ -1,13 +1,13 @@
it("should support wasm compiled from c++", function() {
return import("./memory3.wast").then(function(wasm) {
return import("./memory3.wasm").then(function(wasm) {
expect(wasm._Z3getv()).toBe(0);
wasm._Z3seti(42);
expect(wasm._Z3getv()).toBe(42);
});
});

it("should raw memory export without data", function() {
return import("./memory2.wast").then(function(wasm) {
return import("./memory2.wasm").then(function(wasm) {
expect(wasm.memory).toBeInstanceOf(WebAssembly.Memory);
expect(wasm.memory.buffer).toBeInstanceOf(ArrayBuffer);
expect(wasm.memory.buffer.byteLength).toBe(1 << 16);
Expand Down
Binary file added test/cases/wasm/decoding/memory2.wasm
Binary file not shown.
3 changes: 0 additions & 3 deletions test/cases/wasm/decoding/memory2.wast

This file was deleted.

Binary file added test/cases/wasm/decoding/memory3.wasm
Binary file not shown.
14 changes: 0 additions & 14 deletions test/cases/wasm/decoding/memory3.wast

This file was deleted.

0 comments on commit 7184bb4

Please sign in to comment.