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.
1 parent 03034e9 commit dd56803Copy full SHA for dd56803
lib/utils.js
@@ -36,11 +36,7 @@ var CSInterface = /** @class */ (function (_super) {
36
case 'undefined':
37
return '"null"';
38
case 'string':
39
- var str = JSON.stringify(value);
40
- if (str.substr(0, 1) !== '"' || str.substr(-1) !== '"') {
41
- throw TypeError("Unbekannter JSON String: \"" + str + "\"");
42
- }
43
- return "\"\\" + str.substr(0, str.length - 1) + "\\\"\"";
+ return JSON.stringify(value);
44
case 'number': {
45
if (Number.isNaN(value) || Infinity === value) {
46
return 0;
0 commit comments