summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/loader/loader.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-06-12 09:19:29 -0400
committerGitHub <noreply@github.com>2020-06-12 09:19:29 -0400
commitd0970daacda0b6f6c2077c2f81948536b574bbe9 (patch)
treef116548be832ae6786449dd6f1257865efe38026 /std/encoding/_yaml/loader/loader.ts
parentca1c2ee82207f2ead857ab4aeca48edff16827ae (diff)
make std deno-lint clean (#6240)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'std/encoding/_yaml/loader/loader.ts')
-rw-r--r--std/encoding/_yaml/loader/loader.ts2
1 files changed, 1 insertions, 1 deletions
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}"`);
}