From 421c48fb53e1d82e1bbe16f504a5f1351f381914 Mon Sep 17 00:00:00 2001 From: Jimb Esser Date: Mon, 18 Jan 2021 14:17:05 -0800 Subject: [PATCH] Remove unnecessary hasOwnProperty --- lib/sourcemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sourcemap.js b/lib/sourcemap.js index cc681026..94966a6a 100644 --- a/lib/sourcemap.js +++ b/lib/sourcemap.js @@ -144,7 +144,7 @@ function SourceMap(options) { add(source, gen_line, gen_col, orig_line, orig_col, name); } : add, setSourceContent: sources_content ? function(source, content) { - if (!HOP(sources_content, source)) { + if (!(source in sources_content)) { sources_content[source] = content; } } : noop,