The JavaScript module mediawiki.Title doesn't uppercase Unicode characters out of the BMP as first character:
new mw.Title( '\uD803\uDCC0' ).getMain(); // U+10CC0 (OLD HUNGARIAN SMALL LETTER A)
returns
'\uD803\uDCC0' U+10CC0 (OLD HUNGARIAN SMALL LETTER A) expected result is:
'\uD803\uDC80' U+10C80 (OLD HUNGARIAN CAPITAL LETTER A).