Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
axel22 committed Apr 21, 2021
1 parent f3c8f71 commit 764f97b
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,20 +186,20 @@ public void linkingFailureDueToDependency() throws IOException, InterruptedExcep
public void lazyLinkEquivalenceClasses() throws IOException, InterruptedException {
// Exports table with a function
final byte[] exportBytes = compileWat("exportTable", "(module" +
"(func $f0 (result i32) i32.const 42)" +
"(table 1 1 funcref)" +
"(export \"table\" (table 0))" +
"(elem (i32.const 0) $f0)" +
")");
"(func $f0 (result i32) i32.const 42)" +
"(table 1 1 funcref)" +
"(export \"table\" (table 0))" +
"(elem (i32.const 0) $f0)" +
")");

// Imports table and exports function that invokes functions from the table
final byte[] importBytes = compileWat("importTable", "(module" +
"(type (func (param i32) (result i32)))" +
"(type (func (result i32)))" +
"(import \"main\" \"table\" (table 1 1 funcref))" +
"(func (type 0) (param i32) (result i32) local.get 0 call_indirect (type 1))" +
"(export \"testFunc\" (func 0))" +
")");
"(type (func (param i32) (result i32)))" +
"(type (func (result i32)))" +
"(import \"main\" \"table\" (table 1 1 funcref))" +
"(func (type 0) (param i32) (result i32) local.get 0 call_indirect (type 1))" +
"(export \"testFunc\" (func 0))" +
")");

final Context context = Context.newBuilder("wasm").build();
final ByteSequence exportByteSeq = ByteSequence.create(exportBytes);
Expand Down

0 comments on commit 764f97b

Please sign in to comment.