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/unit.wast.fromBinary.noDebugInfo | |
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/unit.wast.fromBinary.noDebugInfo')
-rw-r--r-- | test/unit.wast.fromBinary.noDebugInfo | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit.wast.fromBinary.noDebugInfo b/test/unit.wast.fromBinary.noDebugInfo index 4fe3d9015..5402df154 100644 --- a/test/unit.wast.fromBinary.noDebugInfo +++ b/test/unit.wast.fromBinary.noDebugInfo @@ -9,9 +9,9 @@ (type $7 (func (param f64) (result f64))) (type $8 (func (result i64))) (type $9 (func (param i32 i64))) - (import "env" "_emscripten_asm_const_vi" (func $import$0)) - (import "asm2wasm" "f64-to-int" (func $import$1 (param f64) (result i32))) - (import "asm2wasm" "f64-rem" (func $import$2 (param f64 f64) (result f64))) + (import "env" "_emscripten_asm_const_vi" (func $fimport$0)) + (import "asm2wasm" "f64-to-int" (func $fimport$1 (param f64) (result i32))) + (import "asm2wasm" "f64-rem" (func $fimport$2 (param f64 f64) (result f64))) (table 10 anyfunc) (elem (i32.const 0) $17 $0 $17 $17 $18 $18 $1 $18 $17 $15) (memory $0 4096 4096) @@ -153,7 +153,7 @@ (local $var$0 i32) (local $var$1 f64) (set_local $var$0 - (call $import$1 + (call $fimport$1 (get_local $var$1) ) ) @@ -274,7 +274,7 @@ ) ) (func $9 (; 12 ;) (type $4) (result f64) - (call $import$2 + (call $fimport$2 (f64.const 5.5) (f64.const 1.2) ) |