Commit ac350b0
committed
Fix String::create(_, 0) without HX_SMART_STRINGS
When smart strings are enabled, this always returns an empty string,
however, if they are disabled this currently has different behaviour
depending on the type of character passed in.
This fixes the behaviour so that it also returns an empty string for
wchar_t and char16_t strings when smart strings are disabled.1 parent 4ce4af3 commit ac350b0
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
| |||
0 commit comments