From d0970daacda0b6f6c2077c2f81948536b574bbe9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 12 Jun 2020 09:19:29 -0400 Subject: make std deno-lint clean (#6240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- std/encoding/_yaml/loader/loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/encoding/_yaml/loader/loader.ts') diff --git a/std/encoding/_yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts index f0d535624..39954c280 100644 --- a/std/encoding/_yaml/loader/loader.ts +++ b/std/encoding/_yaml/loader/loader.ts @@ -1417,7 +1417,7 @@ function readAlias(state: LoaderState): boolean { const alias = state.input.slice(_position, state.position); if ( typeof state.anchorMap !== "undefined" && - !state.anchorMap.hasOwnProperty(alias) + !Object.prototype.hasOwnProperty.call(state.anchorMap, alias) ) { return throwError(state, `unidentified alias "${alias}"`); } -- cgit v1.2.3