Node updated. Some todos.
This commit is contained in:
6
Scripts/node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js
generated
vendored
6
Scripts/node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js
generated
vendored
@ -18,10 +18,12 @@ exports.URLPattern = void 0;
|
||||
* limitations under the License.
|
||||
*/
|
||||
const urlpattern_polyfill_1 = require("urlpattern-polyfill");
|
||||
Object.defineProperty(exports, "URLPattern", { enumerable: true, get: function () { return urlpattern_polyfill_1.URLPattern; } });
|
||||
// XXX: Switch to native URLPattern when available.
|
||||
// https://github.com/nodejs/node/issues/40844
|
||||
let URLPattern = urlpattern_polyfill_1.URLPattern;
|
||||
exports.URLPattern = URLPattern;
|
||||
if ('URLPattern' in globalThis) {
|
||||
urlpattern_polyfill_1.URLPattern = globalThis.URLPattern;
|
||||
// eslint-disable-next-line no-global-assign
|
||||
exports.URLPattern = URLPattern = globalThis.URLPattern;
|
||||
}
|
||||
//# sourceMappingURL=UrlPattern.js.map
|
||||
Reference in New Issue
Block a user