File tree Expand file tree Collapse file tree 7 files changed +37
-17
lines changed
Expand file tree Collapse file tree 7 files changed +37
-17
lines changed Original file line number Diff line number Diff line change 11node_modules
2-
2+ cjs
3+ umd
4+ esm
Original file line number Diff line number Diff line change 11import pulse from "./../src/index.js" ;
2-
3- const { fftComplex, fftReal } = await pulse ( ) ;
2+ // var pulse = require('../src/index.js')
3+ // const { fftComplex, fftReal } = await pulse();
44
55/* Utility functions to generate arbitrary input in various formats */
66function inputReals ( size ) {
@@ -122,7 +122,8 @@ function testKissFFTCC(size) {
122122}
123123
124124function testWASMkissFFT ( size ) {
125- var fft = new fftReal ( size ) ;
125+ const real = await pulse ( ) ;
126+ var fft = new real . fftReal ( size ) ;
126127 console . log ( "running wasmkissfft test" ) ;
127128 var start = performance . now ( ) ;
128129 var middle = start ;
@@ -153,7 +154,8 @@ function testWASMkissFFT(size) {
153154 }
154155
155156 function testWASMkissFFTCC ( size ) {
156- var fft = new fftComplex ( size ) ;
157+ const complex = await pulse ( ) ;
158+ var fft = new complex . fftComplex ( size ) ;
157159
158160 var start = performance . now ( ) ;
159161 var middle = start ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+
2+ "use strict"
3+ let testing = ( ) => { console . log ( "testing yay!" ) }
4+ let testPromise = testing ( ) ;
5+ let test = await testPromise ;
6+
7+
8+ // async function test() {
9+ // try {
10+ // let result = await testing();
11+ // return result;
12+ // } catch (err) {
13+ // console.log("error", err)
14+ // }
15+ // }
16+
17+ // export default test
18+ module . exports = test ;
19+
20+
Original file line number Diff line number Diff line change 1+ "use strict"
2+
3+ // import test from "./debugexport.js"
4+ var test = require ( "./debugexport.js" ) ;
5+
6+ test ( )
Original file line number Diff line number Diff line change 1+ Subproject commit b3b3940d41281dd09d0a9863e211fb61722951d4
Original file line number Diff line number Diff line change 11const Module = { } ;
22
33const pulse = async ( ) => {
4- const response = await fetch ( '... ' ) ;
4+ const response = await fetch ( 'WASMkissFFT.wasm ' ) ;
55 const m = await response . arrayBuffer ( ) ;
66 Module . wasmBinary = m ;
77
You can’t perform that action at this time.
0 commit comments