massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / json / stringify.js
index 19018139fee7490620b8f6ca87ce6f8c7bc27069..5909b5982adb6499ea56899f2692f8ff584f1c9b 100644 (file)
@@ -1,9 +1,11 @@
 require('../../modules/es.json.stringify');
-var core = require('../../internals/path');
+var path = require('../../internals/path');
+var apply = require('../../internals/function-apply');
 
-if (!core.JSON) core.JSON = { stringify: JSON.stringify };
+// eslint-disable-next-line es/no-json -- safe
+if (!path.JSON) path.JSON = { stringify: JSON.stringify };
 
 // eslint-disable-next-line no-unused-vars -- required for `.length`
 module.exports = function stringify(it, replacer, space) {
-  return core.JSON.stringify.apply(null, arguments);
+  return apply(path.JSON.stringify, null, arguments);
 };