Skip to content

Commit 189677f

Browse files
committed
url: warn when operation requires ICU
1 parent 9687348 commit 189677f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_url.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,11 +787,13 @@ bool ToASCII(const std::string& input, std::string* output) {
787787
#else
788788
// Intentional non-ops if ICU is not present.
789789
bool ToUnicode(const std::string& input, std::string* output) {
790+
std::cerr << "Warning: Cannot convert to unicode when intl is disabled!\n";
790791
*output = input;
791792
return true;
792793
}
793794

794795
bool ToASCII(const std::string& input, std::string* output) {
796+
std::cerr << "Warning: Cannot convert to ASCII when intl is disabled!\n";
795797
*output = input;
796798
return true;
797799
}

0 commit comments

Comments
 (0)