summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/loader
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/_yaml/loader')
-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}"`);
}