| 176 | } |
| 177 | |
| 178 | static StringBox cleanFunctionName(const StringBox& functionName) { |
| 179 | if (functionName.length() > 2 && functionName.hasPrefix("#") && functionName.hasSuffix("#")) { |
| 180 | return functionName.substring(1, functionName.length() - 1); |
| 181 | } else { |
| 182 | return functionName; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | // Compatability workaround for proper Source mapping in Hermes Profiler |
| 187 | // Replace scriptIds in the profile nodes with the actual scriptIds based on the URL |
no test coverage detected