mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
1 line
2.3 KiB
JSON
1 line
2.3 KiB
JSON
{"ast":null,"code":"'use strict';\n\nvar implementation = require('./implementation');\n\nvar supportsDescriptors = require('define-properties').supportsDescriptors;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nvar $TypeError = TypeError;\n\nmodule.exports = function getPolyfill() {\n if (!supportsDescriptors) {\n throw new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');\n }\n\n if (/a/mig.flags === 'gim') {\n var descriptor = $gOPD(RegExp.prototype, 'flags');\n\n if (descriptor && typeof descriptor.get === 'function' && typeof /a/.dotAll === 'boolean') {\n return descriptor.get;\n }\n }\n\n return implementation;\n};","map":{"version":3,"sources":["/app/node_modules/regexp.prototype.flags/polyfill.js"],"names":["implementation","require","supportsDescriptors","$gOPD","Object","getOwnPropertyDescriptor","$TypeError","TypeError","module","exports","getPolyfill","flags","descriptor","RegExp","prototype","get","dotAll"],"mappings":"AAAA;;AAEA,IAAIA,cAAc,GAAGC,OAAO,CAAC,kBAAD,CAA5B;;AAEA,IAAIC,mBAAmB,GAAGD,OAAO,CAAC,mBAAD,CAAP,CAA6BC,mBAAvD;;AACA,IAAIC,KAAK,GAAGC,MAAM,CAACC,wBAAnB;AACA,IAAIC,UAAU,GAAGC,SAAjB;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,WAAT,GAAuB;AACvC,MAAI,CAACR,mBAAL,EAA0B;AACzB,UAAM,IAAII,UAAJ,CAAe,2FAAf,CAAN;AACA;;AACD,MAAK,MAAD,CAASK,KAAT,KAAmB,KAAvB,EAA8B;AAC7B,QAAIC,UAAU,GAAGT,KAAK,CAACU,MAAM,CAACC,SAAR,EAAmB,OAAnB,CAAtB;;AACA,QAAIF,UAAU,IAAI,OAAOA,UAAU,CAACG,GAAlB,KAA0B,UAAxC,IAAsD,OAAQ,GAAD,CAAMC,MAAb,KAAwB,SAAlF,EAA6F;AAC5F,aAAOJ,UAAU,CAACG,GAAlB;AACA;AACD;;AACD,SAAOf,cAAP;AACA,CAXD","sourcesContent":["'use strict';\n\nvar implementation = require('./implementation');\n\nvar supportsDescriptors = require('define-properties').supportsDescriptors;\nvar $gOPD = Object.getOwnPropertyDescriptor;\nvar $TypeError = TypeError;\n\nmodule.exports = function getPolyfill() {\n\tif (!supportsDescriptors) {\n\t\tthrow new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');\n\t}\n\tif ((/a/mig).flags === 'gim') {\n\t\tvar descriptor = $gOPD(RegExp.prototype, 'flags');\n\t\tif (descriptor && typeof descriptor.get === 'function' && typeof (/a/).dotAll === 'boolean') {\n\t\t\treturn descriptor.get;\n\t\t}\n\t}\n\treturn implementation;\n};\n"]},"metadata":{},"sourceType":"script"} |