From 3dbe456f14c94a5d119b35ac41712c7faea93afd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 11:56:08 -0700 Subject: [PATCH] [Tests] use `call-bind` instead of `function-bind` --- package.json | 1 - test/shimmed.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5ae0ef2..793a602 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", - "function-bind": "^1.1.1", "functions-have-names": "^1.2.3", "has-strict-mode": "^1.0.1", "in-publish": "^2.0.1", diff --git a/test/shimmed.js b/test/shimmed.js index 95c378a..98f70c0 100644 --- a/test/shimmed.js +++ b/test/shimmed.js @@ -6,7 +6,7 @@ require('../auto'); var test = require('tape'); var defineProperties = require('define-properties'); -var bind = require('function-bind'); +var callBind = require('call-bind'); var isEnumerable = Object.prototype.propertyIsEnumerable; var functionsHaveNames = require('functions-have-names')(); @@ -33,7 +33,7 @@ test('shimmed', function (t) { st.end(); }); - runTests(bind.call(Function.call, Array.prototype.includes), t); + runTests(callBind(Array.prototype.includes), t); t.end(); });