8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JSON
1 parent a4770af commit a5a6c10Copy full SHA for a5a6c10
src/compiler/utilities.ts
@@ -2400,7 +2400,7 @@ namespace ts {
2400
* Serialize an object graph into a JSON string. This is intended only for use on an acyclic graph
2401
* as the fallback implementation does not check for circular references by default.
2402
*/
2403
- export const stringify: (value: any) => string = JSON && JSON.stringify
+ export const stringify: (value: any) => string = typeof JSON !== "undefined" && JSON.stringify
2404
? JSON.stringify
2405
: stringifyFallback;
2406
0 commit comments