From b20622b2c84ce3ca1781c7bf8e10fed0af1e5001 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 7 Jan 2021 21:36:20 -0500 Subject: Core refactor (#1207) * Copy set intersection functions * Remove unused functions * Simplify url check * Remove parseUrl * Simplify stringReverse * Remove hasOwn due to infrequent use * Rename errorToJson/jsonToError to de/serializeError For clarity on intended use. * Fix time argument on timeout * Add missing return value * Throw an error for unexpected argument values * Add documentation comments --- ext/bg/js/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg/js/options.js') diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 16168e38..adf3cfd4 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -343,7 +343,7 @@ class OptionsUtil { const combine = (target, source) => { for (const key in source) { - if (!hasOwn(target, key)) { + if (!Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } -- cgit v1.2.3