Skip to content

Commit 1f348ed

Browse files
chore: string comparison perf note feedback
Co-authored-by: Copilot <[email protected]>
1 parent 1362852 commit 1f348ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-app/runtime/src/main/cpp/ModuleInternalCallbacks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static void LogHttpCompileDiagnostics(v8::Isolate* isolate,
7070
classification = "wrap-error";
7171
}
7272
}
73-
if (std::string(classification) == "unknown") {
73+
if (strcmp(classification, "unknown") == 0) {
7474
if (code.find("export default") == std::string::npos && code.find("__sfc__") != std::string::npos) classification = "missing-export-default";
7575
else if (code.find("__sfc__") != std::string::npos && code.find("export {") == std::string::npos && code.find("export ") == std::string::npos) classification = "no-exports";
7676
else if (code.find("import ") == std::string::npos && code.find("export ") == std::string::npos) classification = "not-module";

0 commit comments

Comments
 (0)