(str)
| 5302 | } |
| 5303 | |
| 5304 | function snip(str) { |
| 5305 | var maxChars = 41; |
| 5306 | if (str.length < maxChars) { |
| 5307 | return str; |
| 5308 | } |
| 5309 | return str.substr(0, maxChars - 3) + "..."; |
| 5310 | } |
| 5311 | |
| 5312 | function longStackTracesIsSupported() { |
| 5313 | return typeof captureStackTrace === "function"; |