-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
300 changed files
with
1,948 additions
and
1,165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
'use strict'; | ||
const { uncurryThis } = require('@nolyfill/shared'); | ||
const isArrayBuffer = require('@nolyfill/is-array-buffer'); | ||
const bL = uncurryThis(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, 'byteLength').get); | ||
module.exports = (ab) => { | ||
if (!isArrayBuffer(ab)) return NaN; | ||
return bL(ab); | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var _isarraybuffer = /*#__PURE__*/ _interop_require_default(require("@nolyfill/is-array-buffer")); | ||
function _interop_require_default(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
var bL = (0, _shared.uncurryThis)(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get); | ||
var is = function(ab) { | ||
if (!(0, _isarraybuffer.default)(ab)) return NaN; | ||
return bL(ab); | ||
}; | ||
var _default = is; | ||
|
||
if ((typeof exports.default === 'object' && exports.default !== null) || typeof exports.default === 'function') { | ||
Object.assign(exports.default, exports); | ||
} | ||
module.exports = exports.default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var _default = (0, _shared.defineEsShim)(Array.prototype.includes); | ||
|
||
Object.assign(exports.default, exports); | ||
module.exports = exports.default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = Array.prototype.includes; | ||
module.exports = require('./entry.js').implementation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
'use strict'; | ||
const { uncurryThis, makeEsShim } = require('@nolyfill/shared'); | ||
const impl = Array.prototype.includes; | ||
const bound = uncurryThis(impl); | ||
makeEsShim(bound, impl); | ||
module.exports = bound; | ||
module.exports = require('./entry.js').index(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.includes; | ||
module.exports = require('./entry.js').polyfill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.includes; | ||
module.exports = require('./entry.js').shim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var _default = (0, _shared.defineEsShim)(Array.from, true); | ||
|
||
Object.assign(exports.default, exports); | ||
module.exports = exports.default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = Array.from; | ||
module.exports = require('./entry.js').implementation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
'use strict'; | ||
const { makeEsShim } = require('@nolyfill/shared'); | ||
const impl = Array.from; | ||
const bound = impl; | ||
makeEsShim(bound, impl); | ||
module.exports = bound; | ||
module.exports = require('./entry.js').index(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.from; | ||
module.exports = require('./entry.js').polyfill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.from; | ||
module.exports = require('./entry.js').shim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var implementation = Array.prototype.at || function at(n) { | ||
n = Math.trunc(n) || 0; | ||
if (n < 0) n += this.length; | ||
if (n < 0 || n >= this.length) return undefined; | ||
return this[n]; | ||
}; | ||
var _default = (0, _shared.defineEsShim)(implementation); | ||
|
||
Object.assign(exports.default, exports); | ||
module.exports = exports.default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
'use strict'; | ||
module.exports = Array.prototype.at || function at(n) { | ||
n = Math.trunc(n) || 0; | ||
if (n < 0) n += this.length; | ||
if (n < 0 || n >= this.length) return undefined; | ||
return this[n]; | ||
}; | ||
module.exports = require('./entry.js').implementation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
'use strict'; | ||
const { uncurryThis, makeEsShim } = require('@nolyfill/shared'); | ||
const impl = Array.prototype.at || function at(n) { | ||
n = Math.trunc(n) || 0; | ||
if (n < 0) n += this.length; | ||
if (n < 0 || n >= this.length) return undefined; | ||
return this[n]; | ||
}; | ||
const bound = uncurryThis(impl); | ||
makeEsShim(bound, impl); | ||
module.exports = bound; | ||
module.exports = require('./entry.js').index(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.at || function at(n) { | ||
n = Math.trunc(n) || 0; | ||
if (n < 0) n += this.length; | ||
if (n < 0 || n >= this.length) return undefined; | ||
return this[n]; | ||
}; | ||
module.exports = require('./entry.js').polyfill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.at || function at(n) { | ||
n = Math.trunc(n) || 0; | ||
if (n < 0) n += this.length; | ||
if (n < 0 || n >= this.length) return undefined; | ||
return this[n]; | ||
}; | ||
module.exports = require('./entry.js').shim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var _default = (0, _shared.defineEsShim)(Array.prototype.find); | ||
|
||
Object.assign(exports.default, exports); | ||
module.exports = exports.default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = Array.prototype.find; | ||
module.exports = require('./entry.js').implementation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
'use strict'; | ||
const { uncurryThis, makeEsShim } = require('@nolyfill/shared'); | ||
const impl = Array.prototype.find; | ||
const bound = uncurryThis(impl); | ||
makeEsShim(bound, impl); | ||
module.exports = bound; | ||
module.exports = require('./entry.js').index(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.find; | ||
module.exports = require('./entry.js').polyfill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.find; | ||
module.exports = require('./entry.js').shim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var implementation = Array.prototype.findLast || function(callback, thisArg) { | ||
for(var i = this.length - 1; i >= 0; i--){ | ||
var value = this[i]; | ||
if (callback.call(thisArg, value, i, this)) return value; | ||
} | ||
}; | ||
var _default = (0, _shared.defineEsShim)(implementation); | ||
|
||
Object.assign(exports.default, exports); | ||
module.exports = exports.default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
'use strict'; | ||
module.exports = Array.prototype.findLast || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
const value = this[i]; | ||
if (callback.call(thisArg, value, i, this)) return value; | ||
} | ||
return void undefined; | ||
}; | ||
module.exports = require('./entry.js').implementation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
'use strict'; | ||
const { uncurryThis, makeEsShim } = require('@nolyfill/shared'); | ||
const impl = Array.prototype.findLast || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
const value = this[i]; | ||
if (callback.call(thisArg, value, i, this)) return value; | ||
} | ||
return void undefined; | ||
}; | ||
const bound = uncurryThis(impl); | ||
makeEsShim(bound, impl); | ||
module.exports = bound; | ||
module.exports = require('./entry.js').index(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.findLast || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
const value = this[i]; | ||
if (callback.call(thisArg, value, i, this)) return value; | ||
} | ||
return void undefined; | ||
}; | ||
module.exports = require('./entry.js').polyfill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.findLast || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
const value = this[i]; | ||
if (callback.call(thisArg, value, i, this)) return value; | ||
} | ||
return void undefined; | ||
}; | ||
module.exports = require('./entry.js').shim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
enumerable: true, | ||
get: function() { | ||
return _default; | ||
} | ||
}); | ||
var _shared = require("@nolyfill/shared"); | ||
var implementation = Array.prototype.findLastIndex || function(callback, thisArg) { | ||
for(var i = this.length - 1; i >= 0; i--){ | ||
if (callback.call(thisArg, this[i], i, this)) return i; | ||
} | ||
return -1; | ||
}; | ||
var _default = (0, _shared.defineEsShim)(implementation); | ||
|
||
Object.assign(exports.default, exports); | ||
module.exports = exports.default; |
7 changes: 1 addition & 6 deletions
7
packages/generated/array.prototype.findlastindex/implementation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
'use strict'; | ||
module.exports = Array.prototype.findLastIndex || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
if (callback.call(thisArg, this[i], i, this)) return i; | ||
} | ||
return -1; | ||
}; | ||
module.exports = require('./entry.js').implementation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
'use strict'; | ||
const { uncurryThis, makeEsShim } = require('@nolyfill/shared'); | ||
const impl = Array.prototype.findLastIndex || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
if (callback.call(thisArg, this[i], i, this)) return i; | ||
} | ||
return -1; | ||
}; | ||
const bound = uncurryThis(impl); | ||
makeEsShim(bound, impl); | ||
module.exports = bound; | ||
module.exports = require('./entry.js').index(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.findLastIndex || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
if (callback.call(thisArg, this[i], i, this)) return i; | ||
} | ||
return -1; | ||
}; | ||
module.exports = require('./entry.js').polyfill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
'use strict'; | ||
module.exports = () => Array.prototype.findLastIndex || function (callback, thisArg) { | ||
for (let i = this.length - 1; i >= 0; i--) { | ||
if (callback.call(thisArg, this[i], i, this)) return i; | ||
} | ||
return -1; | ||
}; | ||
module.exports = require('./entry.js').shim; |
Oops, something went wrong.