Skip to content

Commit

Permalink
[Deps] update es-abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 26, 2019
1 parent 37790ce commit 1ced75a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions implementation.js
@@ -1,18 +1,18 @@
'use strict';

var ES = require('es-abstract/es5');
var bind = require('function-bind');
var callBound = require('es-abstract/helpers/callBound');
var isString = require('is-string');

// Check failure of by-index access of string characters (IE < 9) and failure of `0 in boxedString` (Rhino)
var boxedString = Object('a');
var splitString = boxedString[0] !== 'a' || !(0 in boxedString);

var strSplit = bind.call(Function.call, String.prototype.split);
var $split = callBound('String.prototype.split');

module.exports = function some(callbackfn) {
var O = ES.ToObject(this);
var self = splitString && isString(O) ? strSplit(O, '') : O;
var self = splitString && isString(O) ? $split(O, '') : O;
var len = ES.ToUint32(self.length);
var T;
if (arguments.length > 1) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
@@ -1,7 +1,7 @@
'use strict';

var define = require('define-properties');
var ES = require('es-abstract/es6');
var ES = require('es-abstract/es2015');

var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -47,7 +47,7 @@
],
"dependencies": {
"define-properties": "^1.1.3",
"es-abstract": "^1.13.0",
"es-abstract": "^1.16.0",
"is-string": "^1.0.4"
},
"devDependencies": {
Expand Down

0 comments on commit 1ced75a

Please sign in to comment.