UNPKG
care-js
Version:
latest (3.3.4)
3.3.4
Standard library
care-js
/
modules
/
web.url.to-json.js
11 lines
(9 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
var
$ =
require
(
'../internals/export'
);
// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
$({
target
:
'URL'
,
proto
:
true
,
enumerable
:
true
}, {
toJSON
:
function
toJSON
(
) {
return
URL
.
prototype
.
toString
.
call
(
this
); } });