From 03a366b77fbbb67c44fe059d595f50a3887f50cf Mon Sep 17 00:00:00 2001 From: Partouf Date: Sun, 14 Oct 2018 02:32:04 +0200 Subject: [PATCH] bugfix clientstate conformanceview --- lib/clientstate.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/clientstate.js b/lib/clientstate.js index b346c010a..41d5cc6cf 100644 --- a/lib/clientstate.js +++ b/lib/clientstate.js @@ -118,7 +118,11 @@ class ClientStateSession { this.language = jsondata.language; this.source = jsondata.source; if (typeof jsondata.conformanceview !== 'undefined') { - this.conformanceview = new ClientStateConformanceView(jsondata); + if (jsondata.conformanceview) { + this.conformanceview = new ClientStateConformanceView(jsondata.conformanceview); + } else { + this.conformanceview = false; + } } jsondata.compilers.forEach((compilerdata) => {