blob: 4c2347469953b99aff150fabca3e3f4356894391 [file] [log] [blame]
'use strict';
var GetIntrinsic = require('../GetIntrinsic');
var originalSetProto = GetIntrinsic('%Object.setPrototypeOf%', true);
var $ArrayProto = GetIntrinsic('%Array.prototype%');
module.exports = originalSetProto || (
// eslint-disable-next-line no-proto, no-negated-condition
[].__proto__ !== $ArrayProto
? null
: function (O, proto) {
O.__proto__ = proto; // eslint-disable-line no-proto
return O;
}
);