GoScrobble/web/node_modules/.cache/babel-loader/696c76da808352e4dedda3fe6c5cd044.json

1 line
2.8 KiB
JSON

{"ast":null,"code":"'use strict';\n\nvar supportsDescriptors = require('define-properties').supportsDescriptors;\n\nvar getPolyfill = require('./polyfill');\n\nvar gOPD = Object.getOwnPropertyDescriptor;\nvar defineProperty = Object.defineProperty;\nvar TypeErr = TypeError;\nvar getProto = Object.getPrototypeOf;\nvar regex = /a/;\n\nmodule.exports = function shimFlags() {\n if (!supportsDescriptors || !getProto) {\n throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');\n }\n\n var polyfill = getPolyfill();\n var proto = getProto(regex);\n var descriptor = gOPD(proto, 'flags');\n\n if (!descriptor || descriptor.get !== polyfill) {\n defineProperty(proto, 'flags', {\n configurable: true,\n enumerable: false,\n get: polyfill\n });\n }\n\n return polyfill;\n};","map":{"version":3,"sources":["/app/node_modules/regexp.prototype.flags/shim.js"],"names":["supportsDescriptors","require","getPolyfill","gOPD","Object","getOwnPropertyDescriptor","defineProperty","TypeErr","TypeError","getProto","getPrototypeOf","regex","module","exports","shimFlags","polyfill","proto","descriptor","get","configurable","enumerable"],"mappings":"AAAA;;AAEA,IAAIA,mBAAmB,GAAGC,OAAO,CAAC,mBAAD,CAAP,CAA6BD,mBAAvD;;AACA,IAAIE,WAAW,GAAGD,OAAO,CAAC,YAAD,CAAzB;;AACA,IAAIE,IAAI,GAAGC,MAAM,CAACC,wBAAlB;AACA,IAAIC,cAAc,GAAGF,MAAM,CAACE,cAA5B;AACA,IAAIC,OAAO,GAAGC,SAAd;AACA,IAAIC,QAAQ,GAAGL,MAAM,CAACM,cAAtB;AACA,IAAIC,KAAK,GAAG,GAAZ;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,SAAT,GAAqB;AACrC,MAAI,CAACd,mBAAD,IAAwB,CAACS,QAA7B,EAAuC;AACtC,UAAM,IAAIF,OAAJ,CAAY,2FAAZ,CAAN;AACA;;AACD,MAAIQ,QAAQ,GAAGb,WAAW,EAA1B;AACA,MAAIc,KAAK,GAAGP,QAAQ,CAACE,KAAD,CAApB;AACA,MAAIM,UAAU,GAAGd,IAAI,CAACa,KAAD,EAAQ,OAAR,CAArB;;AACA,MAAI,CAACC,UAAD,IAAeA,UAAU,CAACC,GAAX,KAAmBH,QAAtC,EAAgD;AAC/CT,IAAAA,cAAc,CAACU,KAAD,EAAQ,OAAR,EAAiB;AAC9BG,MAAAA,YAAY,EAAE,IADgB;AAE9BC,MAAAA,UAAU,EAAE,KAFkB;AAG9BF,MAAAA,GAAG,EAAEH;AAHyB,KAAjB,CAAd;AAKA;;AACD,SAAOA,QAAP;AACA,CAfD","sourcesContent":["'use strict';\n\nvar supportsDescriptors = require('define-properties').supportsDescriptors;\nvar getPolyfill = require('./polyfill');\nvar gOPD = Object.getOwnPropertyDescriptor;\nvar defineProperty = Object.defineProperty;\nvar TypeErr = TypeError;\nvar getProto = Object.getPrototypeOf;\nvar regex = /a/;\n\nmodule.exports = function shimFlags() {\n\tif (!supportsDescriptors || !getProto) {\n\t\tthrow new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');\n\t}\n\tvar polyfill = getPolyfill();\n\tvar proto = getProto(regex);\n\tvar descriptor = gOPD(proto, 'flags');\n\tif (!descriptor || descriptor.get !== polyfill) {\n\t\tdefineProperty(proto, 'flags', {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\tget: polyfill\n\t\t});\n\t}\n\treturn polyfill;\n};\n"]},"metadata":{},"sourceType":"script"}