From 1ba7096e929b06ac320aaea53943870b302beb3e Mon Sep 17 00:00:00 2001 From: Kael Zhang Date: Wed, 3 Nov 2021 15:58:38 +0800 Subject: [PATCH] chore: define KEY_IGNORE first --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 475fccd..3f3c637 100644 --- a/index.js +++ b/index.js @@ -395,9 +395,10 @@ class Ignore { constructor ({ ignorecase = true } = {}) { + define(this, KEY_IGNORE, true) + this._rules = [] this._ignorecase = ignorecase - define(this, KEY_IGNORE, true) this._initCache() }