🔧
This commit is contained in:
13
node_modules/set-function-length/env.js
generated
vendored
13
node_modules/set-function-length/env.js
generated
vendored
@@ -1,14 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var gOPD = require('gopd');
|
||||
var bind = require('function-bind');
|
||||
|
||||
var functionsHaveConfigurableLengths = gOPD && gOPD(function () {}, 'length').configurable;
|
||||
var unbound = gOPD && gOPD(function () {}, 'length');
|
||||
// @ts-expect-error ts(2555) TS is overly strict with .call
|
||||
var bound = gOPD && gOPD(bind.call(function () {}), 'length');
|
||||
|
||||
var functionsHaveWritableLengths = gOPD && gOPD(function () {}, 'length').writable;
|
||||
var functionsHaveConfigurableLengths = !!(unbound && unbound.configurable);
|
||||
|
||||
var boundFnsHaveConfigurableLengths = gOPD && gOPD(function () {}.bind(), 'length').configurable;
|
||||
var functionsHaveWritableLengths = !!(unbound && unbound.writable);
|
||||
|
||||
var boundFnsHaveWritableLengths = gOPD && gOPD(function () {}.bind(), 'length').writable;
|
||||
var boundFnsHaveConfigurableLengths = !!(bound && bound.configurable);
|
||||
|
||||
var boundFnsHaveWritableLengths = !!(bound && bound.writable);
|
||||
|
||||
module.exports = {
|
||||
__proto__: null,
|
||||
|
||||
Reference in New Issue
Block a user