diff --git a/src/NativeScript/inspector/SourceProviderManager.cpp b/src/NativeScript/inspector/SourceProviderManager.cpp index 77b8a22c3..c5da28322 100644 --- a/src/NativeScript/inspector/SourceProviderManager.cpp +++ b/src/NativeScript/inspector/SourceProviderManager.cpp @@ -15,6 +15,11 @@ RefPtr ResourceManager::addSourceProvider(WTF::String url, } WTF::String ResourceManager::constructFunctionContent(WTF::String moduleBody) { - return String::format("{function anonymous(require, module, exports, __dirname, __filename) { %s \n}}", moduleBody.utf8().data()); + StringBuilder builder; + builder.append("{function anonymous(require, module, exports, __dirname, __filename) {"); + builder.append(moduleBody); + builder.append("\n}}"); + + return builder.toString(); } } \ No newline at end of file