mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
vscode: rename nodeAssert -> nativeAssert
This commit is contained in:
parent
b88887e70e
commit
9cf2577054
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
import * as lc from "vscode-languageclient";
|
||||
import * as vscode from "vscode";
|
||||
import { strict as nodeAssert } from "assert";
|
||||
import { strict as nativeAssert } from "assert";
|
||||
|
||||
export function assert(condition: unknown, explanation: string): asserts condition {
|
||||
try {
|
||||
nodeAssert(condition, explanation);
|
||||
nativeAssert(condition, explanation);
|
||||
} catch (err) {
|
||||
log.error(`Assertion failed:`, explanation);
|
||||
throw err;
|
||||
|
|
Loading…
Reference in a new issue