ccdb4031f80d012090547dc26c9f163598f7283cfd911cc9cbab8578b9cc1888109d4876a4cb3e77f26eedd1f4574127b8eda3637d93f6e84ce52b25019aa0 324 B

1234567891011
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var call = require('../internals/function-call');
  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 call(URL.prototype.toString, this);
  9. }
  10. });