We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631a496 commit f9f5b09Copy full SHA for f9f5b09
src/memory.ts
@@ -1,18 +1,18 @@
1
// Work In Progress!
2
3
-import { ErrnoException } from 'kerium';
+import { UV } from 'kerium';
4
import { PagedMemory } from './pages.js';
5
6
export const defaultMemory = new PagedMemory();
7
8
export function alloc(size: number | Number): number {
9
- throw ErrnoException.With('ENOSYS', 'alloc');
+ throw UV('ENOSYS', 'alloc');
10
}
11
12
export function free(addr: number | Number): void {
13
- throw ErrnoException.With('ENOSYS', 'free');
+ throw UV('ENOSYS', 'free');
14
15
16
export function realloc(addr: number | Number, size: number): number {
17
- throw ErrnoException.With('ENOSYS', 'realloc');
+ throw UV('ENOSYS', 'realloc');
18
0 commit comments