massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / web.url.to-json.js
1 'use strict';
2 var $ = require('../internals/export');
3 var call = require('../internals/function-call');
4
5 // `URL.prototype.toJSON` method
6 // https://url.spec.whatwg.org/#dom-url-tojson
7 $({ target: 'URL', proto: true, enumerable: true }, {
8   toJSON: function toJSON() {
9     return call(URL.prototype.toString, this);
10   }
11 });