Skip to content

Commit dd56803

Browse files
committed
Revert "fix string parameter"
This reverts commit f888f25
1 parent 03034e9 commit dd56803

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/utils.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ var CSInterface = /** @class */ (function (_super) {
3636
case 'undefined':
3737
return '"null"';
3838
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) + "\\\"\"";
39+
return JSON.stringify(value);
4440
case 'number': {
4541
if (Number.isNaN(value) || Infinity === value) {
4642
return 0;

0 commit comments

Comments
 (0)