Skip to content

Commit d64c486

Browse files
committed
[Deps] update define-properties, es-abstract
1 parent 3587a34 commit d64c486

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

implementation.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

3-
var ArraySpeciesCreate = require('es-abstract/2021/ArraySpeciesCreate');
4-
var FlattenIntoArray = require('es-abstract/2021/FlattenIntoArray');
5-
var Get = require('es-abstract/2021/Get');
6-
var IsCallable = require('es-abstract/2021/IsCallable');
7-
var ToLength = require('es-abstract/2021/ToLength');
8-
var ToObject = require('es-abstract/2021/ToObject');
3+
var ArraySpeciesCreate = require('es-abstract/2022/ArraySpeciesCreate');
4+
var FlattenIntoArray = require('es-abstract/2022/FlattenIntoArray');
5+
var Get = require('es-abstract/2022/Get');
6+
var IsCallable = require('es-abstract/2022/IsCallable');
7+
var ToLength = require('es-abstract/2022/ToLength');
8+
var ToObject = require('es-abstract/2022/ToObject');
99

1010
module.exports = function flatMap(mapperFunction) {
1111
var O = ToObject(this);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
],
4949
"dependencies": {
5050
"call-bind": "^1.0.2",
51-
"define-properties": "^1.1.3",
52-
"es-abstract": "^1.19.2",
51+
"define-properties": "^1.1.4",
52+
"es-abstract": "^1.20.4",
5353
"es-shim-unscopables": "^1.0.0"
5454
},
5555
"devDependencies": {

test/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ var runTests = require('./tests');
66

77
test('as a function', function (t) {
88
t.test('bad array/this value', function (st) {
9-
st['throws'](flatMap.bind(null, undefined, function () {}), TypeError, 'undefined is not an object');
10-
st['throws'](flatMap.bind(null, null, function () {}), TypeError, 'null is not an object');
9+
/* eslint no-useless-call: 0 */
10+
st['throws'](function () { flatMap.call(undefined, function () {}); }, TypeError, 'undefined is not an object');
11+
st['throws'](function () { flatMap.call(null, function () {}); }, TypeError, 'null is not an object');
1112
st.end();
1213
});
1314

0 commit comments

Comments
 (0)