diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-02-22 11:10:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 11:10:12 -0800 |
commit | a40f14508fb769358737c3f8c9b94e6c42f79c61 (patch) | |
tree | f57dca752269f26168c98a2f224e57037b1faebf /test/export-import.wast.fromBinary | |
parent | 30c1b0c58ee60a730ddfd862fbed7dd5e4d7cf93 (diff) | |
download | binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.tar.gz binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.tar.bz2 binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.zip |
ensure unique import names for each type, by giving them a prefix, avoiding collisions between say a global import and a function with a name from the name section that happens to match it (#1424)
Diffstat (limited to 'test/export-import.wast.fromBinary')
-rw-r--r-- | test/export-import.wast.fromBinary | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/export-import.wast.fromBinary b/test/export-import.wast.fromBinary index f35d385f1..492a05273 100644 --- a/test/export-import.wast.fromBinary +++ b/test/export-import.wast.fromBinary @@ -1,9 +1,9 @@ (module (type $0 (func)) (type $1 (func)) - (import "env" "test2" (global $import$1 i32)) + (import "env" "test2" (global $gimport$1 i32)) (import "env" "test1" (func $test1)) (export "test1" (func $test1)) - (export "test2" (global $import$1)) + (export "test2" (global $gimport$1)) ) |