aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/util.ts b/editors/code/src/util.ts
index 203494459..733bdc8c5 100644
--- a/editors/code/src/util.ts
+++ b/editors/code/src/util.ts
@@ -1,10 +1,10 @@
1import * as lc from "vscode-languageclient"; 1import * as lc from "vscode-languageclient";
2import * as vscode from "vscode"; 2import * as vscode from "vscode";
3import { strict as nodeAssert } from "assert"; 3import { strict as nativeAssert } from "assert";
4 4
5export function assert(condition: unknown, explanation: string): asserts condition { 5export function assert(condition: unknown, explanation: string): asserts condition {
6 try { 6 try {
7 nodeAssert(condition, explanation); 7 nativeAssert(condition, explanation);
8 } catch (err) { 8 } catch (err) {
9 log.error(`Assertion failed:`, explanation); 9 log.error(`Assertion failed:`, explanation);
10 throw err; 10 throw err;