diff options
-rw-r--r-- | editors/code/src/util.ts | 4 |
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 @@ | |||
1 | import * as lc from "vscode-languageclient"; | 1 | import * as lc from "vscode-languageclient"; |
2 | import * as vscode from "vscode"; | 2 | import * as vscode from "vscode"; |
3 | import { strict as nodeAssert } from "assert"; | 3 | import { strict as nativeAssert } from "assert"; |
4 | 4 | ||
5 | export function assert(condition: unknown, explanation: string): asserts condition { | 5 | export 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; |