Skip to content

Commit cc912cd

Browse files
committed
[Tests] use call-bind instead of function-bind
1 parent 8813c62 commit cc912cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"devDependencies": {
4545
"@es-shims/api": "^2.5.1",
4646
"@ljharb/eslint-config": "^21.1.1",
47+
"call-bind": "^1.0.7",
4748
"define-properties": "^1.2.1",
4849
"eslint": "=8.8.0",
4950
"function-bind": "^1.1.2",

tests/shimmed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ codePointAt.shim();
55

66
var test = require('tape');
77
var defineProperties = require('define-properties');
8-
var bind = require('function-bind');
8+
var callBind = require('call-bind');
99
var isEnumerable = Object.prototype.propertyIsEnumerable;
1010
var functionsHaveNames = require('functions-have-names')();
1111

@@ -24,7 +24,7 @@ test('shimmed', function (t) {
2424
et.end();
2525
});
2626

27-
runTests(bind.call(Function.call, String.prototype.codePointAt), t);
27+
runTests(callBind(String.prototype.codePointAt), t);
2828

2929
t.end();
3030
});

0 commit comments

Comments
 (0)