Plato on Github
Report Home
src/compatibility/json.js
Maintainability
100.00
Lines of code
22
Difficulty
2.00
Estimated Errors
0.02
Function weight
By Complexity
By SLOC
/** * @file JSON polyfill * @since 0.1.5 */ /*#ifndef(UMD)*/ "use strict"; /*global _gpfCompatibilityInstallGlobal*/ // Install compatible global if missing /*global _gpfJsonParsePolyfill*/ // JSON.parse polyfill /*global _gpfJsonStringifyPolyfill*/ // JSON.stringify polyfill /*#endif*/ _gpfCompatibilityInstallGlobal("JSON", { parse: _gpfJsonParsePolyfill, stringify: _gpfJsonStringifyPolyfill }); /*#ifndef(UMD)*/ // Generates an empty function to reflect the null complexity of this module (function _gpfCompatibilityJson () {}()); /*#endif*/