Fix actions/tour
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
var callBind = require('call-bind');
|
||||
var gOPD = require('gopd');
|
||||
|
||||
// eslint-disable-next-line no-extra-parens, no-proto
|
||||
var hasProto = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
||||
|
||||
// eslint-disable-next-line no-extra-parens
|
||||
var dunderGetter = hasProto && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
||||
|
||||
module.exports = dunderGetter && dunderGetter.get && callBind(dunderGetter.get);
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var callBind = require('call-bind');
|
||||
var gOPD = require('gopd');
|
||||
|
||||
// @ts-expect-error TS can't handle dunder proto
|
||||
var desc = gOPD && gOPD(Object.prototype, '__proto__');
|
||||
|
||||
module.exports = !!desc && !!desc.set && callBind(desc.set);
|
||||
Reference in New Issue
Block a user