summaryrefslogtreecommitdiff
path: root/js/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/os.ts')
-rw-r--r--js/os.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/os.ts b/js/os.ts
index e7d21db45..bd7754ea0 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -16,7 +16,7 @@ export function exit(exitCode = 0): never {
fbs.Base.addMsgType(builder, fbs.Any.Exit);
builder.finish(fbs.Base.endBase(builder));
libdeno.send(builder.asUint8Array());
- throw Error("Unreachable");
+ return util.unreachable();
}
export function codeFetch(
@@ -131,7 +131,7 @@ export function writeFileSync(
data: Uint8Array,
perm: number
): void {
- assert(false, "Not Implemented");
+ util.notImplemented();
/*
pubInternal("os", {
command: fbs.Command.WRITE_FILE_SYNC,