diff options
author | Veetaha <[email protected]> | 2020-02-28 22:07:29 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-28 22:07:29 +0000 |
commit | 9cf25770542dfbf35c710f7c214f65ecaad39100 (patch) | |
tree | ac51ea3a9e55a0a02c096ede870351d578261e46 /editors/code | |
parent | b88887e70e0936132b03d8db065b7cf7db175f7b (diff) |
vscode: rename nodeAssert -> nativeAssert
Diffstat (limited to 'editors/code')
-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; |