Don't throw in array/dict conversion
| @@ -79,7 +79,8 @@ export function convertValueType(value, type) { | ||
| 79 | 79 | if (Array.isArray(parsedArray)) { |
| 80 | 80 | return parsedArray; |
| 81 | 81 | } |
| 82 | 82 | throw// newThe Error('Valuevalue is not an array.'); |
| 83 | + return []; | |
| 83 | 84 | } catch { |
| 84 | 85 | return []; |
| 85 | 86 | } |
| @@ -92,7 +93,8 @@ export function convertValueType(value, type) { | ||
| 92 | 93 | if (typeof parsedObject === 'object') { |
| 93 | 94 | return parsedObject; |
| 94 | 95 | } |
| 95 | 96 | throw// newThe Error('Valuevalue is not an object.'); |
| 97 | + return {}; | |
| 96 | 98 | } catch { |
| 97 | 99 | return {}; |
| 98 | 100 | } |