summaryrefslogtreecommitdiff
path: root/demo/demo.js
diff options
context:
space:
mode:
Diffstat (limited to 'demo/demo.js')
-rw-r--r--demo/demo.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/demo/demo.js b/demo/demo.js
index 8b8c4967..3ec1245a 100644
--- a/demo/demo.js
+++ b/demo/demo.js
@@ -97,8 +97,7 @@ function compile(text) {
wabt.ready.then(function() {
output.textContent = '';
try {
- var stackAllocator = new wabt.StackAllocator(wabt.LibcAllocator);
- var script = wabt.parseAst(stackAllocator.allocator, 'test.wast', text);
+ var script = wabt.parseAst('test.wast', text);
script.resolveNames();
script.validate();
var binaryOutput = script.toBinary({log: true});
@@ -115,7 +114,6 @@ function compile(text) {
download.classList.add('disabled');
} finally {
if (script) script.$destroy();
- if (stackAllocator) stackAllocator.$destroy();
}
});
}