This commit is contained in:
落日晚风
2023-12-13 11:25:22 +08:00
parent 7c2ab0b7ad
commit cff33ad7d1
6370 changed files with 378844 additions and 82245 deletions
+7
View File
@@ -0,0 +1,7 @@
'use strict';
require('../../modules/es.json.stringify');
require('../../modules/es.json.to-string-tag');
var path = require('../../internals/path');
// eslint-disable-next-line es/no-json -- safe
module.exports = path.JSON || (path.JSON = { stringify: JSON.stringify });
+12
View File
@@ -0,0 +1,12 @@
'use strict';
require('../../modules/es.json.stringify');
var path = require('../../internals/path');
var apply = require('../../internals/function-apply');
// 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 apply(path.JSON.stringify, null, arguments);
};
+4
View File
@@ -0,0 +1,4 @@
'use strict';
require('../../modules/es.json.to-string-tag');
module.exports = 'JSON';