Skip to content

Commit e4ea02f

Browse files
committed
remove deprecated files and include counter
1 parent 9e14108 commit e4ea02f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

WebAssemblyDemo/c/counter.c

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/counter.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import CounterWA from '../build/counter.wasm';
2-
import { loadWebAssembly } from './loader';
32

43
export class Counter {
54
counterModule;
@@ -28,9 +27,6 @@ export class Counter {
2827
'table': new WebAssembly.Table({initial: 0, element: 'anyfunc'}),
2928
}
3029
};
31-
loadWebAssembly('wasm/counter.wasm',importObject).then(instance => {
32-
console.log(instance);
33-
});
3430
this.counterModule = new CounterWA(importObject);
3531
console.log('Counter Module', this.counterModule);
3632
}

app/loader.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @deprecated we use .wasm loader now
3+
*/
4+
15
export function loadWebAssembly(filename, imports = {}) {
26
return fetch(filename)
37
.then(response => response.arrayBuffer())

0 commit comments

Comments
 (0)