| Index: src/string.js
|
| diff --git a/src/string.js b/src/string.js
|
| index 3ccad9a21a9d445217d639b602191f6e0a3f7c65..c7a838e9ffba2532bce7e9f9f85ccedfb36241ec 100644
|
| --- a/src/string.js
|
| +++ b/src/string.js
|
| @@ -812,6 +812,11 @@ ReplaceResultBuilder.prototype.generate = function() {
|
| }
|
|
|
|
|
| +function StringToJSON(key) {
|
| + return CheckJSONPrimitive(this.valueOf());
|
| +}
|
| +
|
| +
|
| // -------------------------------------------------------------------
|
|
|
| function SetupString() {
|
| @@ -858,7 +863,8 @@ function SetupString() {
|
| "small", StringSmall,
|
| "strike", StringStrike,
|
| "sub", StringSub,
|
| - "sup", StringSup
|
| + "sup", StringSup,
|
| + "toJSON", StringToJSON
|
| ));
|
| }
|
|
|
|
|