mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
enable also in parseWat() the experimental code
This commit is contained in:
parent
f79038a19f
commit
bd6b2ef3c6
@ -6,7 +6,8 @@ var wabt = require("wabt")();
|
||||
var filename = '{test.wast}';
|
||||
var text = nodeFS['readFileSync'](filename, "utf8");
|
||||
|
||||
var ret = wabt.parseWat(filename, text);
|
||||
var features = {'sat_float_to_int':true, 'sign_extension':true};
|
||||
var ret = wabt.parseWat(filename, text, features);
|
||||
ret = ret.toBinary({}).buffer;
|
||||
|
||||
function instantiate(bytes, imports) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user