mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 07:21:30 +00:00
Update dependencies; Regenerate dist files
This commit is contained in:
@ -33,20 +33,10 @@ global.load = function(ptr) {
|
||||
|
||||
const Module = require("../../module").Module;
|
||||
|
||||
Module.prototype.toText = function toText() {
|
||||
var previousPrint = binaryen.print;
|
||||
var ret = "";
|
||||
binaryen.print = function(x) { ret += x + "\n" };
|
||||
_BinaryenModulePrint(this.ref);
|
||||
binaryen.print = previousPrint;
|
||||
return ret;
|
||||
Module.prototype.toText = function() {
|
||||
return new binaryen.Module(this.ref).emitText();
|
||||
};
|
||||
|
||||
Module.prototype.toAsmjs = function toAsmjs() {
|
||||
var previousPrint = binaryen.print;
|
||||
var ret = "";
|
||||
binaryen.print = function(x) { ret += x + "\n" };
|
||||
_BinaryenModulePrintAsmjs(this.ref);
|
||||
binaryen.print = previousPrint;
|
||||
return ret;
|
||||
Module.prototype.toAsmjs = function() {
|
||||
return new binaryen.Module(this.ref).emitAsmjs();
|
||||
};
|
||||
|
Reference in New Issue
Block a user