Skip to content

Commit 6313b26

Browse files
committed
[js] Hack around dependency bug
1 parent c422444 commit 6313b26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vm/js/nqp-runtime/core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,8 @@ op.fc = foldCase;
18541854
function tcChar(c) {
18551855
if (c === 'ß') return 'Ss';
18561856
const unicharadata = require('unicharadata');
1857-
const titled = unicharadata.title(c);
1857+
/* HACK - unichardata needs to be fixed to work in browsers correctly or replaced */
1858+
const titled = unicharadata.title ? unicharadata.title(c) : window.unicharadata.title(c);
18581859
return titled === '' ? c : titled;
18591860
}
18601861

0 commit comments

Comments
 (0)