Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement nqp::ordat and nqp::ordfirst in the js backend.
  • Loading branch information
pmurias committed Mar 17, 2014
1 parent f4c1e4b commit 6bc483c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vm/js/nqp-runtime-core/runtime.js
Expand Up @@ -425,6 +425,8 @@ op.ord = function(ctx, str, index) {
index = index || 0;
return str.to_s(ctx).charCodeAt(index);
};
op.ordfirst = op.ord;
op.ordat = op.ord;
op.lc = function(ctx, str) {
return str.to_s().toLowerCase();
};
Expand Down

0 comments on commit 6bc483c

Please sign in to comment.