You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
382 B
15 lines
382 B
// 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; |
|
} |
|
} |
|
});
|
|
|