(val)
| 881 | |
| 882 | // Only use this for integers! Decimal numbers do not work with this function. |
| 883 | function addNumericalSeparator(val) { |
| 884 | let res = ''; |
| 885 | let i = val.length; |
| 886 | const start = val[0] === '-' ? 1 : 0; |
| 887 | for (; i >= start + 4; i -= 3) { |
| 888 | res = `_${StringPrototypeSlice(val, i - 3, i)}${res}`; |
| 889 | } |
| 890 | return `${StringPrototypeSlice(val, 0, i)}${res}`; |
| 891 | } |
| 892 | |
| 893 | // Used to enhance the stack that will be picked up by the inspector |
| 894 | const kEnhanceStackBeforeInspector = Symbol('kEnhanceStackBeforeInspector'); |
no outgoing calls
no test coverage detected
searching dependent graphs…