Skip to content

Commit

Permalink
destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
LingDong- committed Jul 19, 2020
1 parent 0e5237f commit 2601dd6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions wat/traceskeleton.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@
fetch('traceskeleton.wasm').then(response =>
response.arrayBuffer()
).then(bytes => WebAssembly.instantiate(bytes,{
console: {
log : (x)=>(console.log(x)),
log2 : (x,y)=>(console.log(x,y)),
log4 : (x,y,z,w)=>(console.log(x,y,z,w)),
print: (x)=>(
console.log(read_polylines(main,x))
)
}
})).then(results => {
main = results.instance.exports;
var img = new Image();
Expand All @@ -76,6 +68,8 @@
console.log((new Date())-time);
var p = read_polylines(main,q);

main.pls_destroy(q);

var div = document.createElement("div");
div.innerHTML = visualize(p,w,h)
div.style = "position:absolute;left:0px;top:0px;"
Expand Down

0 comments on commit 2601dd6

Please sign in to comment.