You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/pitfall/pdfkit/node_modules/core-js/modules/es6.reflect.set-prototype-o...

15 lines
376 B
JavaScript

// 26.1.14 Reflect.setPrototypeOf(target, proto)
var $export = require('./_export')
, setProto = require('./_set-proto');
if(setProto)$export($export.S, 'Reflect', {
setPrototypeOf: function setPrototypeOf(target, proto){
setProto.check(target, proto);
try {
setProto.set(target, proto);
return true;
} catch(e){
return false;
}
}
});