diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-09-18 17:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-18 17:08:58 +0200 |
commit | 1a928bc3ff4b511e81b3f93db8aea872e88abaaf (patch) | |
tree | c36dc3594abcd32e61f1e0a63d85339c266db788 /test/binaryen.js/functions.js.txt | |
parent | 2548f04c198594a21e4144261e8cfea5de56308a (diff) | |
download | binaryen-1a928bc3ff4b511e81b3f93db8aea872e88abaaf.tar.gz binaryen-1a928bc3ff4b511e81b3f93db8aea872e88abaaf.tar.bz2 binaryen-1a928bc3ff4b511e81b3f93db8aea872e88abaaf.zip |
Update JS API function wrapper (#3128)
Updates the JS API `Function` wrapper introduced in #3115 with bindings for more C API functions. Also adds additional comments to describe the inner workings of wrappers in more detail.
Diffstat (limited to 'test/binaryen.js/functions.js.txt')
-rw-r--r-- | test/binaryen.js/functions.js.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/binaryen.js/functions.js.txt b/test/binaryen.js/functions.js.txt index 8dd90b3a8..bf6337e0e 100644 --- a/test/binaryen.js/functions.js.txt +++ b/test/binaryen.js/functions.js.txt @@ -6,3 +6,17 @@ getExpressionInfo(body)={"id":14,"value":3} (module ) +(module + (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) + (func $b-function (param $a i32) (param $b i32) (result i32) + (local $res i32) + (local $unused f64) + (local.tee $res + (i32.add + (local.get $a) + (local.get $b) + ) + ) + ) +) + |