Skip to content

Commit

Permalink
[js] Temporary workaround till we load real unicode data
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Apr 8, 2018
1 parent 5b8b657 commit df7d707
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vm/js/nqp-runtime/core.js
Expand Up @@ -88,6 +88,10 @@ op.unipropcode = function(name) {
};

op.getuniprop_str = function(codePoint, propCode) {
/* TODO - load and use real data */
if (propCode === 84) {
return codePoint == 780 ? '230' : '0';
}
const got = uniData.props[propCode][codePoint];
return got === undefined ? 'NaN' : got;
};
Expand Down

0 comments on commit df7d707

Please sign in to comment.