AssemblyScript/wabt.js

error: opcode not allowed: i32.trunc_s:sat/f64

Horcrux7 opened this issue · 2 comments

Is there an option like "--experimental-wasm-sat-f2i-conversions" from node to use experimental features?

see WebAssembly/design#1143

With version v1.0.0-nightly.20180421 the new opertions like i32.trunc_s:sat/f64 has worked.

With the latest build I use now:

var features = {'sat_float_to_int':true, 'sign_extension':true};
var ret = wabt.parseWat(filename, text, features);