File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ const handler = {
62
62
63
63
const proxy1 = new Proxy (sum, handler)
64
64
65
+ let veryLongText = ' '
66
+ for (let i = 0 ; i < 1000000 ; i++ ) {
67
+ veryLongText += ` line${ i} \n `
68
+ }
69
+
65
70
export default {
66
71
components: {
67
72
TestComponent: {
@@ -102,7 +107,8 @@ export default {
102
107
sym: Symbol (' test' ),
103
108
multiLineParameterFunction : function (a ,
104
109
b ,
105
- c ) {}
110
+ c ) {},
111
+ veryLongText
106
112
}
107
113
},
108
114
computed: {
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ export const SPECIAL_TOKENS = {
59
59
'NaN' : NAN
60
60
}
61
61
62
+ export const MAX_STRING_SIZE = 10000
63
+
62
64
export function specialTokenToString ( value ) {
63
65
if ( value === null ) {
64
66
return 'null'
@@ -149,6 +151,8 @@ function replacer (key) {
149
151
}
150
152
} else if ( Number . isNaN ( val ) ) {
151
153
return NAN
154
+ } else if ( typeof val === 'string' && val . length > MAX_STRING_SIZE ) {
155
+ return val . substr ( 0 , MAX_STRING_SIZE ) + `... (${ ( val . length ) } total length)`
152
156
}
153
157
return sanitize ( val )
154
158
}
You can’t perform that action at this time.
0 commit comments