aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/web.url.to-json.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/web.url.to-json.js')
-rw-r--r--node_modules/core-js/modules/web.url.to-json.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/web.url.to-json.js b/node_modules/core-js/modules/web.url.to-json.js
new file mode 100644
index 0000000..7e38169
--- /dev/null
+++ b/node_modules/core-js/modules/web.url.to-json.js
@@ -0,0 +1,10 @@
+'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);
+ }
+});