/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ "use strict"; // Note: This file is overridden in the 'package.json#browser' field to // substitute lib/url-browser.js instead. // Use the URL global for Node 10, and the 'url' module for Node 8. module.exports = typeof URL === "function" ? URL : require("url").URL;