first
This commit is contained in:
11
node_modules/core-js/modules/web.url.to-json.js
generated
vendored
Normal file
11
node_modules/core-js/modules/web.url.to-json.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
var $ = require('../internals/export');
|
||||
var call = require('../internals/function-call');
|
||||
|
||||
// `URL.prototype.toJSON` method
|
||||
// https://url.spec.whatwg.org/#dom-url-tojson
|
||||
$({ target: 'URL', proto: true, enumerable: true }, {
|
||||
toJSON: function toJSON() {
|
||||
return call(URL.prototype.toString, this);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user