You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the "string.fromcharcode" method is called, if the argument is assigned to 0, it should output an invisible empty String, but it actually outputs·\0000 .
Version
v3.0.0
Testcase
var str1 = String.fromCharCode(0);
print(str1);
Output
\u0000
The text was updated successfully, but these errors were encountered:
The current behavior is correct; the NULL byte is escaped when printed. Firefox does the same when printing strings and it's incredibly helpful for spotting unexpected code points.
Description
When the "string.fromcharcode" method is called, if the argument is assigned to
0
, it should output an invisible empty String, but it actually outputs·\0000
.Version
Testcase
Output
The text was updated successfully, but these errors were encountered: