aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-28 22:07:29 +0000
committerVeetaha <[email protected]>2020-02-28 22:07:29 +0000
commit9cf25770542dfbf35c710f7c214f65ecaad39100 (patch)
treeac51ea3a9e55a0a02c096ede870351d578261e46 /editors/code
parentb88887e70e0936132b03d8db065b7cf7db175f7b (diff)
vscode: rename nodeAssert -> nativeAssert
Diffstat (limited to 'editors/code')
-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;