Module 228047

800 characters · in 393394.682390c809d5b7c0.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,r){"use strict";var n=r(353841),i=r(741623),o=r(547210),a=r(33831),s=r(227106);e.exports=function(e){if(!s(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(n(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),n(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),n(e,"value")&&(t["[[Value]]"]=e.value),n(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),n(e,"get")){var r=e.get;if(void 0!==r&&!o(r))throw new i("getter must be a function");t["[[Get]]"]=r}if(n(e,"set")){var l=e.set;if(void 0!==l&&!o(l))throw new i("setter must be a function");t["[[Set]]"]=l}if((n(t,"[[Get]]")||n(t,"[[Set]]"))&&(n(t,"[[Value]]")||n(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}}