blob: 5dae90122b5658f7be9dd092d1638f1cc2a7bc3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 26.1.14 Reflect.setPrototypeOf(target, proto)
var $export = require('./_export');
var 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;
}
}
});
|