From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- node_modules/@babel/traverse/lib/scope/binding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node_modules/@babel/traverse/lib/scope/binding.js') diff --git a/node_modules/@babel/traverse/lib/scope/binding.js b/node_modules/@babel/traverse/lib/scope/binding.js index c40a40a4..90a6d9b8 100644 --- a/node_modules/@babel/traverse/lib/scope/binding.js +++ b/node_modules/@babel/traverse/lib/scope/binding.js @@ -45,13 +45,13 @@ class Binding { } reassign(path) { this.constant = false; - if (this.constantViolations.indexOf(path) !== -1) { + if (this.constantViolations.includes(path)) { return; } this.constantViolations.push(path); } reference(path) { - if (this.referencePaths.indexOf(path) !== -1) { + if (this.referencePaths.includes(path)) { return; } this.referenced = true; -- cgit v1.2.3