Skip to content

Commit f9f5b09

Browse files
committed
Fix usage of renamed symbols
1 parent 631a496 commit f9f5b09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/memory.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Work In Progress!
22

3-
import { ErrnoException } from 'kerium';
3+
import { UV } from 'kerium';
44
import { PagedMemory } from './pages.js';
55

66
export const defaultMemory = new PagedMemory();
77

88
export function alloc(size: number | Number): number {
9-
throw ErrnoException.With('ENOSYS', 'alloc');
9+
throw UV('ENOSYS', 'alloc');
1010
}
1111

1212
export function free(addr: number | Number): void {
13-
throw ErrnoException.With('ENOSYS', 'free');
13+
throw UV('ENOSYS', 'free');
1414
}
1515

1616
export function realloc(addr: number | Number, size: number): number {
17-
throw ErrnoException.With('ENOSYS', 'realloc');
17+
throw UV('ENOSYS', 'realloc');
1818
}

0 commit comments

Comments
 (0)