Skip to content

Commit 13e1839

Browse files
committed
[js] Make nqp::fc actually fold case rather than lowercase
1 parent 1df9595 commit 13e1839

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,10 +1360,7 @@ op.forceouterctx = function(code, ctx) {
13601360
return code;
13611361
};
13621362

1363-
// TODO: replace it with a fully correct implementation
1364-
op.fc = function(string) {
1365-
return string.toLowerCase();
1366-
};
1363+
op.fc = foldCase;
13671364

13681365
function tcChar(c) {
13691366
if (c === 'ß') return 'Ss';

0 commit comments

Comments
 (0)