aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index e93467c3..c64c2ced 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -205,7 +205,7 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions, givenGlobalVaria
} else if (value.text && value.text[0] == '"') {
value.text = value.text.substr(1, value.text.length-2);
return JSON.stringify(parseLLVMString(value.text)) +
- ' /* ' + value.text.replace(/\*/g, '_') + ' */'; // make string safe for inclusion in comment
+ ' /* ' + value.text.substr(0, 20).replace(/\*/g, '_') + ' */'; // make string safe for inclusion in comment
} else {
// Gets an array of constant items, separated by ',' tokens
function handleSegments(tokens) {