From e17301416f51b0093a237060832f825d6e8351b0 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 5 Apr 2017 17:52:48 -0700 Subject: [PATCH] Fix #195 --- src/chrome/variables.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chrome/variables.ts b/src/chrome/variables.ts index 8c294f249..212f6339b 100644 --- a/src/chrome/variables.ts +++ b/src/chrome/variables.ts @@ -194,7 +194,10 @@ function getObjectPreview(object: Crdp.Runtime.RemoteObject, context?: string): } function propertyPreviewToString(prop: Crdp.Runtime.PropertyPreview): string { - const value = trimProperty(prop.value); + const value = typeof prop.value === 'undefined' ? + `<${prop.type}>` : + trimProperty(prop.value); + return prop.type === 'string' ? `"${value}"` : value;