2 var $ = require('../internals/export');
4 // `URL.prototype.toJSON` method
5 // https://url.spec.whatwg.org/#dom-url-tojson
6 $({ target: 'URL', proto: true, enumerable: true }, {
7 toJSON: function toJSON() {
8 return URL.prototype.toString.call(this);