wiki.techinc.nl/resources/lib/url/URL-toJSON.js
Timo Tijhof 582ebce4d5 web2017-polyfills: Add WHATWG URL polyfill
Sourced from <https://github.com/Financial-Times/polyfill-library>.

Bug: T103379
Change-Id: Ia524d9d5ed884296007dae1caf9599c0c0b45c47
2022-02-16 17:22:49 +00:00

6 lines
148 B
JavaScript

// eslint-disable-next-line no-unused-vars
(function (global) {
global.URL.prototype.toJSON = function toJSON() {
return this.href;
}
}(self));