Skip to content

Commit df7d707

Browse files
committed
[js] Temporary workaround till we load real unicode data
1 parent 5b8b657 commit df7d707

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ op.unipropcode = function(name) {
8888
};
8989

9090
op.getuniprop_str = function(codePoint, propCode) {
91+
/* TODO - load and use real data */
92+
if (propCode === 84) {
93+
return codePoint == 780 ? '230' : '0';
94+
}
9195
const got = uniData.props[propCode][codePoint];
9296
return got === undefined ? 'NaN' : got;
9397
};

0 commit comments

Comments
 (0)