-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add debug build - update tests to check for memory leaks in debug mode
- Loading branch information
Showing
45 changed files
with
4,279 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,5 @@ | |
.prettierignore | ||
.prettierrc.json | ||
compile-wasm.sh | ||
jest.config.js | ||
src/** | ||
test/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { QspAPI } from '../contracts/api'; | ||
import createQspModule from '../qsplib/public/qsp-engine-debug'; | ||
|
||
import { QspAPIImpl } from './qsp-api'; | ||
|
||
export function initDebugQspEngine(wasmBinary: ArrayBufferView | ArrayBuffer): Promise<QspAPI> { | ||
return new Promise((resolve) => { | ||
createQspModule({ | ||
wasmBinary, | ||
}).then((moduleWasm) => { | ||
resolve(new QspAPIImpl(moduleWasm)); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="emscripten" /> | ||
import { QspWasmModule } from '../../contracts/wasm-module'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export default function Module(emscriptenArgs: any): Promise<QspWasmModule>; |
Oops, something went wrong.