From 1a928bc3ff4b511e81b3f93db8aea872e88abaaf Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Fri, 18 Sep 2020 17:08:58 +0200 Subject: 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. --- test/binaryen.js/functions.js.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/binaryen.js/functions.js.txt') 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) + ) + ) + ) +) + -- cgit v1.2.3