massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / web.url.to-json.js
index 7e38169c10b11bbb3923191700ec6a2a39c99d37..f4f41c36c428ee9a48cd44f459ceecc204d7278a 100644 (file)
@@ -1,10 +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 URL.prototype.toString.call(this);
+    return call(URL.prototype.toString, this);
   }
 });