From 7ed688602e316693e65ae1846a37d0f51a6ea9e0 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Wed, 12 Feb 2020 16:36:42 +0300 Subject: [PATCH] Disable circular refs in LosslessJSON --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 1971f2d..0f0c93c 100755 --- a/index.js +++ b/index.js @@ -6,6 +6,8 @@ const path = require('path') const JSON = require('lossless-json') const std = require('./std') +JSON.config({circularRefs: false}) + try { require(path.join(os.homedir(), '.fxrc')) // Should be required before config.js usage. } catch (err) {