forked from bytecodealliance/wit-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "wit-component: update the tool to expect mangled names. (byte…
…codealliance#322)" This reverts commit 6aadac3. We chose not to use this approach to smuggling component type information in core modules. See WebAssembly/component-model#106 (comment) for more details.
- Loading branch information
Pat Hickey
committed
Sep 29, 2022
1 parent
4ddd546
commit d7919c1
Showing
25 changed files
with
206 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
crates/wit-component/tests/components/default-export-sig-mismatch/module.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(module | ||
(func (export "a: func(x: string) -> string") unreachable) | ||
(func (export "a") unreachable) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
crates/wit-component/tests/components/ensure-default-type-exports/module.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(module | ||
(import "foo" "a: func(b: record { x: u8 }) -> ()" (func (param i32))) | ||
(import "foo" "a" (func (param i32))) | ||
(memory (export "memory") 1) | ||
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable) | ||
(func (export "a: func(b: record { x: u8 }) -> ()") (param i32) unreachable) | ||
(func (export "a") (param i32) unreachable) | ||
) |
2 changes: 1 addition & 1 deletion
2
crates/wit-component/tests/components/export-sig-mismatch/module.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(module | ||
(func (export "foo#a: func(x: string) -> string") unreachable) | ||
(func (export "foo#a") unreachable) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
(module | ||
(memory (export "memory") 1) | ||
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable) | ||
(func (export "a: func() -> ()") unreachable) | ||
(func (export "b: func(a: s8, b: s16, c: s32, d: s64) -> string") (param i32 i32 i32 i64) (result i32) unreachable) | ||
(func (export "c: func() -> tuple<s8, s16, s32, s64>") (result i32) unreachable) | ||
(func (export "foo#a: func() -> ()") unreachable) | ||
(func (export "foo#b: func(x: string) -> variant { a, b(string), c(s64) }") (param i32 i32) (result i32) unreachable) | ||
(func (export "foo#c: func(x: variant { a, b(string), c(s64) }) -> string") (param i32 i64 i32) (result i32) unreachable) | ||
(func (export "bar#a: func(x: flags { a, b, c }) -> ()") (param i32) unreachable) | ||
(func (export "a") unreachable) | ||
(func (export "b") (param i32 i32 i32 i64) (result i32) unreachable) | ||
(func (export "c") (result i32) unreachable) | ||
(func (export "foo#a") unreachable) | ||
(func (export "foo#b") (param i32 i32) (result i32) unreachable) | ||
(func (export "foo#c") (param i32 i64 i32) (result i32) unreachable) | ||
(func (export "bar#a") (param i32) unreachable) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
crates/wit-component/tests/components/import-conflict/module.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(module | ||
(import "foo" "a: func() -> ()" (func)) | ||
(import "bar" "a: func(x: u64, y: string) -> ()" (func (param i64 i32 i32))) | ||
(import "baz" "baz: func(x: list<u8>) -> list<u8>" (func (param i32 i32 i32))) | ||
(import "foo" "a" (func)) | ||
(import "bar" "a" (func (param i64 i32 i32))) | ||
(import "baz" "baz" (func (param i32 i32 i32))) | ||
(memory (export "memory") 1) | ||
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
crates/wit-component/tests/components/import-export/module.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
(module | ||
(import "foo" "a: func() -> string" (func (param i32))) | ||
(import "foo" "a" (func (param i32))) | ||
(memory (export "memory") 1) | ||
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable) | ||
(func (export "a: func(x: string) -> tuple<string, u32, string>") (param i32 i32) (result i32) unreachable) | ||
(func (export "bar#a: func() -> ()") unreachable) | ||
(func (export "bar#b: func() -> string") (result i32) unreachable) | ||
(func (export "a") (param i32 i32) (result i32) unreachable) | ||
(func (export "bar#a") unreachable) | ||
(func (export "bar#b") (result i32) unreachable) | ||
) |
2 changes: 1 addition & 1 deletion
2
crates/wit-component/tests/components/import-sig-mismatch/module.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(module | ||
(import "foo" "bar: func(s: string) -> ()" (func)) | ||
(import "foo" "bar" (func)) | ||
) |
Oops, something went wrong.